πevm
Last updated
npm install @nest25/wallet-lib
OR
yarn add @nest25/wallet-lib// 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('ava', testMnemonic);
// log the response
console.log(response);
}
main()