Add Leap to a new dapp
If you do not have a Connect Wallet method yet and you want to start a fresh implementation, this is how you can proceed
Basic Usage
if(!window.leap){
console.log("leap wallet not installed")
}else{
// initialise the app
}
async function getKey(){
const key = await window.leap.getKey('cosmoshub-4)
console.log("cosmoshub address", key.bech32Address)
}
CosmJS example
Last updated