Check wallet balances
The Swing SDK requires a connected wallet provider to initiate signing, sending transactions and checking balances. If you haven't already, check out our SDK guide on connecting a wallet;
Get balance for a single token
Get balance for multiple tokens
Following the same instructions as above, you can get the balance for multiple tokens by executing a Promise.all
. Note that fetching balances for all tokens on a chain is not recommended, since you will most likely hit RPC rate limits.