getBalances

getBalances is a method on the ANT class that retrieves all token balances within the ANT process.

getBalances does not require authentication.

Examples

getBalances

const balances = await ant.getBalances();

Parameters

The getBalances method does not accept any parameters.

Output

{
  "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4": 1,
  "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ": 1
}

Was this page helpful?