Ethereum
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Ethereum
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | filterId | string | Oui | The log filter ID. Only log filters (eth_newFilter) are valid — block and pending-tx filters are not supported. |
| Type | Description |
|---|---|
| array | Array of all log objects matching the filter's criteria. |
Try it live in the Ethereum playground.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
Hex filter ID from eth_newFilter