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.

İlgili terimler

Ayrıca bakınız

Kavramı bir API çağrısına dönüştür

Buradaki her terim bugün çağırabileceğin bir ilkel yapıya karşılık gelir — bakiye yükle ve yayına çık.

API anahtarı al