getTokenBalances returns one TokenBalance per token, with symbol, name, logoURI, decimals, a human-readable balance, and (when you opt in) price and marketValue. Pass includePrices for USD figures and filterSpamTokens to drop junk tokens.
balance is already scaled by the token’s decimals for display. When you need the exact integer amount (for a transfer, say), use rawBalanceString — it preserves full precision that a JavaScript number can lose.
Drops tokens flagged as spam — recommended for user-facing lists.
includeNative
Includes the native asset as an entry in the token list.
networkIds
Fetch balances across several networks at once (multichain).
forceRefresh
Bypass any cached result and refetch.
For a portfolio across chains, pass networkIds (or use getMultichainTokenBalances) instead of calling per network — one request returns every network’s holdings.