Token Balance
ArConnect Injected API tokenBalance() function
Some applications may request access to the balance of a specific token in your wallet. The tokenBalance()
function returns the balance of the token identified by its ID.
Argument
Type
Description
id
string
The unique identifier (processId) of the token
Note: This function requires the ACCESS_TOKENS
permission.
Result
The tokenBalance()
function returns the balance of the requested token as a string.
Note: This function throws an error if there is an issue retrieving the balance. Please make sure to handle such cases in your code.
Example usage
Last updated