Token Balance
ArConnect Injected API tokenBalance() function
Last updated
ArConnect Injected API tokenBalance() function
Last updated
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 |
---|---|---|
Note: This function requires the ACCESS_TOKENS
permission.
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.
id
string
The unique identifier (processId) of the token