eth_getLogs

eth_getLogs is a JSON-RPC method that returns all event logs within a given block range that match a filter on contract address and topics.

eth_getLogs is how you pull historical events at scale: give it a fromBlock and toBlock, optionally an address and topic filter, and it returns every matching log. It underpins token-transfer indexing, price feeds and analytics. Wide ranges are expensive, so callers page through blocks and narrow filters. On our archive RPC the full history is available to query, calls are metered per request from your credit balance, and you can request decoded logs so the returned events arrive as named fields.

Related terms

See also

Turn the concept into an API call

Every term here maps to a primitive you can call today — top up credits and ship.

Get API key