getBalance

getBalance is a method on the ANT class that retrieves the token balance for a specific wallet address within the ANT process.

getBalance does not require authentication.

Examples

getBalance

const balance = await ant.getBalance({
  address: "ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4"
});

Parameters

ParameterTypeDescriptionOptional
addressstring - WalletAddressThe wallet address to retrieve the balance forfalse

Output

1

Was this page helpful?