token_balance
Read an address's balance of one ERC-20 token on an EVM chain. Price: $0.002 USDC on Base via x402. Returns the raw balance and the formatted balance with the token's own decimals applied.
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": {
"address": "<address>",
"token": "<token>"
},
"name": "token_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain to read: base (default), ethereum, polygon, arbitrum or optimism. | |
| token | Yes | ERC-20 token contract address, 0x-prefixed, 40 hex characters. | |
| address | Yes | Wallet address holding the token, 0x-prefixed, 40 hex characters. |