Package Exports
- axelar-kit
- axelar-kit/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (axelar-kit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
axelar-kit
This is a toolkit from axelar transfer and query balance.
functions
- query balance from axelar chain and transfer it
import {queryBalance,transfer} from 'axelar-kit';
const taskquery = async ()=>{
const balance = await queryBalance(mnemonic,0,axl_rpc);
console.log(balance);
}
const tasktransfer = async ()=>{
const result = await transfer(mnemonic,from,to,amount,customgas,rpc);
console.log(result);
}