chain_event_logs
$0.005 via x402: raw event logs by contract address and/or indexed topics over a block range (eth_getLogs) — the indexing primitive. Defaults to a 25-block window and narrows automatically when a node refuses on result size, and every cap or narrowing that bit is named in the response instead of silently applied. Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chain_event_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base|ethereum|optimism|arbitrum|polygon|gnosis (default base) | |
| topic0 | No | Event signature topic (32-byte 0x...) | |
| topic1 | No | second log topic filter (32-byte hex), optional | |
| topic2 | No | third log topic filter (32-byte hex), optional | |
| topic3 | No | fourth log topic filter (32-byte hex), optional | |
| address | No | Contract address to filter on (0x...) | |
| toBlock | No | last block of the range (number, hex or latest) | |
| fromBlock | No | first block of the range (number or hex) | |
| x_payment | No | signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms |