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