Setup
Import the SDK and create a wallet:Check Balance for a Single Asset
Usewallet.getBalance() to retrieve all asset balances, then find the one you need by assetId:
Check Balances for All Assets
wallet.getBalance() returns every asset your wallet holds in a single call: