Decoded EVM event logs (paid, $0.005 per 1,000 blocks)
chain_logsPAID $0.005 per started 1,000 blocks: retrieve and decode EVM event logs on Base, Polygon, Arbitrum, Optimism or Avalanche. Adaptive chunking, ordered results and raw fallback. Max 10,000 blocks, 100 logs or 1 MiB output.
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": {
"chain": "<chain>",
"address": "<address>",
"fromBlock": "<fromBlock>",
"toBlock": "<toBlock>"
},
"name": "chain_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional event ABI for decoding | |
| chain | Yes | EVM chain ID: 8453, 137, 42161, 10 or 43114 | |
| topics | No | Optional topic filters | |
| address | Yes | Contract address | |
| toBlock | Yes | Last block, inclusive; at most 10,000 total | |
| fromBlock | Yes | First block, inclusive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | Ordered decoded or raw logs | |
| _paid | No | x402 receipt | |
| chain | No | EVM chain ID | |
| address | No | Contract address | |
| toBlock | No | Last block | |
| fromBlock | No | First block | |
| blockCount | No | Inclusive block count |