2.0.0 • Published 1 year ago
kuber-client v2.0.0
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
2.0.0
1 year ago
1.4.15
1 year ago
1.2.0
1 year ago
1.0.2
1 year ago
1.1.0
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
1.4.6
1 year ago
1.4.5
1 year ago
1.4.4
1 year ago
1.4.3
1 year ago
1.4.2
1 year ago
1.4.1
1 year ago
1.3.2
1 year ago
1.0.5
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.0.4
1 year ago
1.3.0
1 year ago
1.2.1
1 year ago
1.0.3
1 year ago
1.4.0-0
1 year ago
1.4.9
1 year ago
1.4.11
1 year ago
1.4.8
1 year ago
1.4.10
1 year ago
1.4.13
1 year ago
1.4.12
1 year ago
1.4.14
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago