Token Balance
Wander Injected API tokenBalance() function
Last updated
Was this helpful?
Wander Injected API tokenBalance() function
Last updated
Was this helpful?
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.
id
string
The unique identifier (processId) of the token
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.