Base wallet balance
get_base_balanceERC20 and native ETH wallet balance on Base or Ethereum mainnet, for a 0x address or an ENS name. decimals() and symbol() are read from the contract at request time rather than assumed, because assuming 18 reports a USDC balance a trillion times too large. ENS is resolved through two independent resolvers and the answer is used only when they agree, so a wrong address can never produce a confident balance for the wrong wallet. An unsupported chain is refused rather than silently answered from the wrong one. Costs 0.005 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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>"
},
"name": "get_base_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default) or ethereum | |
| token | No | ERC20 contract address, or a known ticker: USDC, WETH, DAI, CBBTC, USDBC, CBETH, AERO, EURC. Omit for the native ETH balance | |
| address | Yes | 0x address (40 hex) or an ENS name ending .eth |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_base_balance payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_base_balance | |
| tool | Yes | the tool that produced this payload |