On-chain reads on Base or Arc (paid, $0.002 flat)
rpc_readPAID over x402 inside this tool call ($0.002 USDC flat on Base, Polygon or Arc): latest block, native or ERC-20 balance, or a transaction's details. No key, no account. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].
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": {
"op": "<op>"
},
"name": "rpc_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | What to read: block, balance, or tx. | |
| hash | No | Transaction hash (tx op). | |
| chain | No | Chain to read (default base). | |
| token | No | Optional ERC-20 token address (balance op); omit for native. | |
| address | No | Wallet address (balance op). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | block, balance, or tx | |
| _paid | No | x402 receipt | |
| chain | No | Chain read: base or arc | |
| symbol | No | Token symbol, when op=balance | |
| balance | No | Balance in smallest units, when op=balance | |
| chainId | No | Chain id | |
| balanceFormatted | No | Balance in whole units, when op=balance |