getStellarAssetBalance returns the balance of a custom Stellar asset held by a wallet account on its active network. It returns "0" when the account has no trustline for the asset. For the native XLM balance, use getNativeBalance instead.
Usage
Parameters
Returns
Promise<{ balance: string }> - A promise that resolves to an object containing the balance as a decimal string in the asset’s display units.
Errors
Related functions
- addTrustline - Add a trustline for a custom asset
- getNativeBalance - Read the native XLM balance
- getTokenBalances - Read all token balances for a wallet account