The Gno Wallet is an extension on the tm2-js-client Wallet, outlined here.
Initiates a native currency transfer transaction between accounts
tostring the bech32 address of the receiverfundsMap<string, number> the denomination -> value map for fundsfeeTxFee the custom transaction fee, if any
Returns Promise<string>
let fundsMap = new Map<string, number>([
["ugnot", 10],
]);
await wallet.transferFunds('g1flk9z2qmkgqeyrl654r3639rzgz7xczdfwwqw7', fundsMap);
// returns the transaction hashInvokes the specified method on a GNO contract
pathstring the gno package / realm pathmethodstring the method nameargsstring[] the method arguments, if anyfundsMap<string, number> the denomination -> value map for fundsfeeTxFee the custom transaction fee, if any
Returns Promise<string>
let fundsMap = new Map<string, number>([
["ugnot", 10],
]);
await wallet.callMethod('gno.land/r/demo/foo20', 'TotalBalance', []);
// returns the transaction hashDeploys the specified package / realm
gnoPackageMemPackage the package / realm to be deployedfundsMap<string, number> the denomination -> value map for fundsfeeTxFee the custom transaction fee, if any
Returns Promise<string>
const memPackage: MemPackage = // ...
await wallet.deployPackage(memPackage);
// returns the transaction hash