For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

eth_getLogs returns up to 200,000 logs per response

Docs Team

A single eth_getLogs response returns at most 200,000 logs, on every plan. A query that matches more fails with an error instead of returning a partial result.

What to do​

Keep each request under the limit: narrow the block range, or filter by address and topics. The block-range caps in Service plans still apply on top of this limit. For a paging loop, see Block-range limits on eth_getLogs and trace_*.

For wide historical scans, ankr_getLogs on the Advanced API serves indexed logs with token pagination.