get_logs
Retrieve contract event logs from 23 EVM chains using eth_getLogs. Requires API key or x402 payment (~$0.001 per call).
Instructions
Fetch contract event logs (eth_getLogs). Heavy method: needs NODEFLARE_API_KEY or an x402 wallet (X402_PRIVATE_KEY) — costs ~$0.001 via x402.
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>",
"fromBlock": "<fromBlock>",
"toBlock": "<toBlock>"
},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain slug, e.g. 'eth', 'base', 'robinhood' | |
| topics | No | Topic filters | |
| address | No | Contract address filter | |
| toBlock | Yes | Hex block number or tag | |
| fromBlock | Yes | Hex block number or tag, e.g. '0x112a880' or 'latest' |