erc20_balanceOf
Check the ERC20 token balance of a specific Ethereum address. Provide the token contract address and owner address to retrieve the balance. Optional inputs include the network provider and chain ID for custom configurations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
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. | |
ownerAddress | Yes | The Ethereum address whose balance to check | |
provider | No | Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value. | |
tokenAddress | Yes | The address of the ERC20 token contract |