When a user connects multiple wallets — for example, an EVM and a Solana account — you often want to display each balance side by side. This guide composesDocumentation Index
Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
getWalletAccounts with getBalance to fetch native balances across every connected account.
Usage
- JavaScript
- React
Notes
getBalancereturns the native token balance on each account’s currently active network. For ERC-20 / SPL token balances, usegetBalances(single network) orgetMultichainBalances(multiple chains for one account).- Calls run in parallel via
Promise.all— slowest RPC determines the wait time. If one chain is unreliable, wrap each call intry/catchto keep the others from failing the whole batch. - Only verified wallet accounts are persisted in the user’s Dynamic record; unverified accounts are session-only. Both kinds appear in
getWalletAccounts()— filter bywalletAccount.verifiedCredentialIdif you want to display only verified ones.
Related functions
- Getting Wallet Accounts
- Getting Balance
- Getting Balances — token balances on a specific network
- Getting Multichain Balances — balances across multiple chains