getERC20Balance
Query the balance of ERC20 tokens for a specific Ethereum wallet address. Use the token contract address and optional chain or RPC details to retrieve accurate data on supported networks.
Instructions
Get the ERC20 token balance of a wallet
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | The Ethereum address to query | |
chainId | No | Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used. | |
provider | No | Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks. | |
tokenAddress | Yes | The address of the ERC20 token contract |