MEGAETHDOCS
GitHubGet started →
API

eth_getLogsWithCursor

Cursor pagination helps avoid timeout-prone broad log range queries.

Why Use Cursor Pagination

1

Better performance

Fetch logs in bounded pages instead of large block-range sweeps.

2

Reliable resume points

Cursor tokens allow deterministic continuation across retries.

3

Lower infrastructure pressure

Smaller page windows reduce load on both client and RPC nodes.

Pattern

eth_getLogsWithCursor.jsonjson
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getLogsWithCursor",
"params": [{ "fromBlock": "0x0", "toBlock": "latest" }, null]
}

Was this page helpful?

Edit on GitHub