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.

相关术语

另见

把概念变成一次 API 调用

这里的每个术语都对应一个今天即可调用的原语——充值额度即可上线。

获取 API 密钥