Get XCN Balance
Get the balance of XCN tokens held by an address.
_address
(string) The address in which to find the XCN balance.[provider]
(Provider | string) An Ethers.js provider or valid network name string.RETURN
(string) Returns a string of the numeric balance of XCN. The value is scaled up by 18 decimal places.
(async function () {
const bal = await Onyx.xcn.getXcnBalance('0x2775b1c75658Be0F640272CCb8c72ac986009e38');
console.log('Balance', bal);
})().catch(console.error);
Last updated