Get ERC-20 balance
chain-data_token_erc20-balanceRetrieve the ERC-20 token balance of a wallet for a specified token contract on Base Mainnet using eth_call. Price $0.01 USDC. POST /api/v1/chain-data/token/erc20-balance. Unpaid calls return 402 and do not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"walletAddress": "<walletAddress>",
"tokenAddress": "<tokenAddress>"
},
"name": "chain-data_token_erc20-balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockNumber | No | ||
| tokenAddress | Yes | ||
| walletAddress | Yes |