chainId
: The chain identifier in CAIP-2 format (e.g., “eip155:1” for Ethereum mainnet, “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet)
FetchedBalance
objects containing token balance information. Each object includes:
contractAddress
: The contract address of the tokenbalance
: The balance of the token as a stringname
: Optional token namesymbol
: Optional token symbol
- 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.