Skip to main content
Function Signature
Parameters
  • chainId: The chain identifier in CAIP-2 format (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet)
Returns An array of FetchedBalance objects containing token balance information. Each object includes:
  • contractAddress: The contract address of the token
  • balance: The balance of the token as a string
  • name: Optional token name
  • symbol: Optional token symbol
Throws Various API-related errors if the balance retrieval fails Example Usage
Implementation Notes
  • Token balances are returned in their smallest unit (e.g., wei for ETH)
  • Need to consider token decimals when displaying balances
  • Method returns all tokens with non-zero balances
  • Consider rate limiting when polling balances frequently
  • Currently, EVM and Solana chains are supported by this method.
Usage in Portfolio Tracking