0.0.2 • Published 3 years ago
cosmo-wallet-tool-chrome v0.0.2
Cosmo Wallet Tool
- cosmo.checkExtension()
- cosmo.getPermission()
- cosmo.getAccount()
- cosmo.sendTransferBaseCoin()
import cosmo from 'cosmo-wallet-tool-chrome';
window.addEventListener('load', async () => {
console.log(cosmo.checkExtension());
console.log(await cosmo.getPermission());
});
async function getAccount() {
console.log(await cosmo.getAccount());
}
async function sendTransfer() {
console.log(await cosmo.sendTransferBaseCoin({
address: 'gx------------',
volume: '0.01',
fee: '0.0002',
}));
}