get_event_logs
chainpeek: Query decoded contract event logs by block range or hash. For one transaction's events use decode_tx_logs; for an address's token transfers use get_erc20_transfers. Returns up to 500 decoded logs from eth_getLogs. truncated flags more matches. Exact reads echo block_hash; bounds are null when the node returns no logs. Input: chain, address or topic0. from_block and to_block (numbers or latest; 2,000 blocks max, last 100 by default), or block_hash (Ethereum and Base only). Check the emitting address: any contract can emit any event. A block hash does not establish finality. Typically 0.3-3 s. Price: USD 0.003. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/ethereum-rpc-reads-api.html
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>"
},
"name": "get_event_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ethereum, base or robinhood (Robinhood Chain, chain id 4663). | |
| topics | No | Event signature and indexed topics; null matches any. | |
| address | No | Emitting contract. Send address or topics[0]. | |
| to_block | No | Last block, inclusive. Defaults to latest. | |
| block_hash | No | Exact block on Ethereum or Base. Omit both range bounds. | |
| from_block | No | First block, inclusive. Defaults to 100 blocks including to_block. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | ||
| note | No | ||
| chain | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| blocks | No | ||
| topics | No | ||
| address | No | ||
| decoded | No | ||
| returned | No | ||
| to_block | No | ||
| log_count | No | ||
| rpc_calls | No | ||
| truncated | No | ||
| block_hash | No | ||
| from_block | No | ||
| untrusted_content | No |