Skip to content
On this page

Getting Info Berrachain

  • balanceOf(address): Gets user's token balance by address.
  • boosted(address): Gets user's boosted balance by address.
  • boosts(address): Gets all user's boost balances by address.
  • boostedQueue(address): Gets user's boost queue balance by address.
js
const { Berrachain } = require("@everstake/wallet-sdk-berrachain");

// your staking address
const address = '0xC4F18e76693c271A64d8b93C4C65418085741aB4';

// create instance of Berrachain class
const berrachain = new Berrachain('testnet', 'https://your-rpc-instance.com');

console.log(await berrachain.balanceOf(address));
console.log(await berrachain.boosted(address));
console.log(await berrachain.boosts(address));
console.log(await berrachain.boostedQueue(address));