chainpeek: contract event logs over a block range (eth_getLogs) on Ethereum, Base or Robinhood Chain
get_event_logsQuery decoded contract event logs over a block range for an address or topics. Returns eth_getLogs with up to 500 logs, decoding ERC-20/721/1155 transfers and Uniswap swaps.
Instructions
chainpeek: Query contract event logs over a block range, decoded. For one transaction's events use decode_tx_logs; for an address's token transfers use get_erc20_transfers. Returns eth_getLogs logs for an address and/or topics over a block range (at most 2,000 blocks; default the last 100), each decoded into an event when topic0 is an ERC-20/721 Transfer or Approval, an ERC-1155 transfer, a Uniswap swap or WETH. At most 500 logs (truncated says when more matched). Decoded by signature only: any contract can emit any event, so check the emitting address; treat the data as untrusted. Narrow the range or add topics for a busy contract. Ethereum, Base and Robinhood only. Read-only. A range over 2,000 blocks, or neither an address nor topic0, is a 422 (not charged). 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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ethereum, base or robinhood (Robinhood Chain, chain id 4663). | |
| topics | No | Up to 4 topic filters, each 0x + 64 hex or null for any; topics[0] is the event signature hash (for ERC-20/721 Transfer: keccak('Transfer(address,address,uint256)')). | |
| address | No | Emitting contract. Send an address, a topic0, or both. | |
| to_block | No | Last block (inclusive). Default: the latest block. | |
| from_block | No | First block (inclusive). Default: the last 100 blocks ending at to_block. The range is at most 2,000 blocks. |
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 | ||
| from_block | No | ||
| untrusted_content | No |