πnear
Last updated
// import wallet from the nest SDK
const { Wallet } = require('@nest25/wallet-lib');
// create a new wallet instance
const wallet = new Wallet('');
// set the mnemonic to use for the wallet
const testMnemonic = 'exchange fun mixed elevator laundry length trap script boost purchase genuine arrest';
async function main() {
// get the balance of the wallet
const response = await wallet.getBalanceByMnemonic(
'near',
testMnemonic,
'tomarc',
);
// log the response
console.log(response);
}