Ethereum
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Ethereum
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_getFilterLogs returns the full set of logs that match a log filter you previously registered with eth_newFilter, ignoring any polling you've already done against it. Where eth_getFilterChanges hands you only the delta since the last call, this method gives you the whole matching set every time — a snapshot, not a stream. It works only on log filters; block and pending-tx filter IDs are rejected. Run it against Ethereum mainnet (chain ID 1, the EVM chain settled in ETH) through https://ethereum.therpc.io/YOUR_API_KEY, and you get back every log across the filter's block range that matches its address and topic criteria, regardless of where your poll cursor sat.
Transfer for a USDC or Lido token contract over the filter's range — then switch to eth_getFilterChanges for incremental updates.eth_getFilterChanges, so you recover events that fired while your indexer was down rather than resuming mid-stream and missing them.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | filterId | string | 是 | The log filter ID. Only log filters (eth_newFilter) are valid — block and pending-tx filters are not supported. |
| 类型 | 描述 |
|---|---|
| array | Array of all log objects matching the filter's criteria. |
Try it live in the Ethereum playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32000 | filter not found | Filter ID is invalid, expired, or the filter was already uninstalled. |
-32005 | query returned more than 10000 results | The filter matches too many logs; narrow the block range or add topic filters. |
-32005 error. Keep the filter's block window tight or lean on topic filters.eth_newBlockFilter / eth_newPendingTransactionFilter and you get filter not found — those have no concept of a log set.eth_newFilter. If the filter expired, recreate it; for one-off historical pulls eth_getLogs skips the filter lifecycle entirely.参数
Hex filter ID from eth_newFilter