How to retrieve the balance of a token for a wallet
To fetch the balance of a certain token for a wallet, you need to call the function getTokenBalance which will return a promise containing a TokenBalance object. If you need the entire balance a certain wallet holds, it is recommended to use the getTokenBalances function.
The function reference describes the different functions that are available in the Widget. For each function you can find the signature, it's parameters, and possible options documented.