3.1.8 • Published 8 months ago

kuber-client v3.1.8

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Kuber-Client Browser

Use kuber with cardano cip30 wallets for composing and submitting transactions

With the power of kuber you can do following using browser wallets

  • make Ada payments
  • mint/burn cardano native tokens and nft
  • pay and redeem from plutus contracts
  • add metadata to transaction

Add as a Dependency

$ npm install kuber-client

Example Usage

import {Kuber,CIP30Wallet} from "kuber-client"
async function donate(amount){
    const kuber=new Kuber('https://mainnet.kuberide.com')
    const providers = CIP30Wallet.listProviders();

    if(!providers){
        alert('Wallet Not detected. Install Compatible cip-30 compatible wallet')
        return
    }
    let provider=providers[0];
    const wallet=provider.enable()
    console.info("Using Browser Wallet",{
        name: wallet.name
        balance: (await wallet.calculateBalance()).multiAssetsUtf8()
        })

    return kuber.buildWithProvider(wallet,{
        outputs:[
            {
                address: "addr1v9f4au6ux739r5kttd4208qerumrsh6mrenvcvq82e0rpwca3u2u6",
                value: amount
            }
        ]
    }).then(tx=>{
        wallet.signAndSubmit(tx)
    }).catch(e=>{
        alert((e && e.message) || e)
    })
}
Promise.resolve(donate(5000000)) // or donate("5A")

Kuber Api Reference

dquadrant/kuber

3.1.8

8 months ago

3.1.7

8 months ago

3.1.6

9 months ago

3.0.4

11 months ago

3.0.6

11 months ago

3.0.5

11 months ago

3.1.3

10 months ago

3.1.2

10 months ago

3.1.1

10 months ago

3.1.0

10 months ago

3.1.5

10 months ago

3.1.4

10 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

3.0.3

12 months ago

3.0.2

12 months ago

3.0.1

12 months ago

3.0.0

12 months ago

2.0.0

2 years ago

1.4.15

2 years ago

1.2.0

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.0.5

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.0.4

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.0.3

2 years ago

1.4.0-0

2 years ago

1.4.9

2 years ago

1.4.11

2 years ago

1.4.8

2 years ago

1.4.10

2 years ago

1.4.13

2 years ago

1.4.12

2 years ago

1.4.14

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago