Query parameters
Optional array of chain IDs to query. If not provided, defaults to configured boost protocol chains
Address to fetch balances for
Optional flag to exclude spam tokens from the results
Optional map of chain IDs to arrays of token addresses to fetch balances for
Query result containing balance data by chain ID
React Query hook to fetch token balances across multiple chains for a specified address. Returns balance data for tokens across each chain with error handling and batched requests.
See
useQuery
fromreact-query
Example