ERC-20 Balance (Multicall)
erc20_balanceBalances of up to 20 arbitrary ERC-20 tokens for one wallet in a single Multicall3 round-trip: raw and decimal-formatted balance, decimals and symbol per token, on Base, Ethereum, BSC, Polygon, Arbitrum or Optimism. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
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": {
"wallet_address": "<wallet_address>",
"contract_addresses": "<contract_addresses>"
},
"name": "erc20_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default), ethereum, bsc, polygon, arbitrum, optimism. | |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. | |
| wallet_address | Yes | EVM wallet address. | |
| contract_addresses | Yes | 1-20 ERC-20 contract addresses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| source | Yes | ||
| tokens | Yes | ||
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| chain_id | Yes | ||
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| fetched_at | No | UTC timestamp when the data was fetched. | |
| token_count | Yes | ||
| block_number | Yes | ||
| wallet_address | Yes | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. |