Get ORION Balance

Get the balance of ORION tokens held by an address.

  • _address (string) The address in which to find the ORION balance.

  • [provider] (Provider | string) An Ethers.js provider or valid network name string.

  • RETURN (string) Returns a string of the numeric balance of ORION. The value is scaled up by 18 decimal places.

(async function () {
  const bal = await Orion.orion.getHaloBalance('0xXXXXXXXXXXXX');
  console.log('Balance', bal);
})().catch(console.error);

Last updated