Retrieves token balances for the specified blockchain. This method fetches all token balances (native and ERC-20 or SPL) associated with the wallet on the specified blockchain network.
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