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.
Términos relacionados
Véase también
Convierte el concepto en una llamada a la API
Cada término aquí se traduce en una primitiva que ya puedes llamar — recarga créditos y publica.
Obtener clave API