Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Japanese version: /ja/doc/rpc/logs.html

Logs

TL;DR

  • eth_getLogs is a constrained implementation built on rpc_eth_get_logs_paged.
  • Exceeding range/filter limits returns -32005.

Supported Patterns

  • Single-address + topic0-centered retrieval
  • OR arrays in topics[0] (up to 16)
  • blockHash mode (without fromBlock/toBlock, within scan limits)

Constraints

  • topics[1+] conditions are currently unsupported
  • multiple addresses in one request are unsupported

Common Errors

  • logs.range_too_large
  • logs.too_many_results
  • UnsupportedFilter

Sources

  • crates/ic-evm-rpc/src/lib.rs (rpc_eth_get_logs_paged)
  • tools/rpc-gateway/src/handlers.ts