Avalanche
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Avalanche
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_getFilterLogs returns the complete set of logs that match an existing Avalanche C-Chain log filter, independent of how many times you have already polled it with eth_getFilterChanges. Where the polling call gives you only what is new, this call replays everything the filter's address and topic criteria cover across its block range. It is the natural way to prime an indexer that follows AVAX-paid contract activity — DeFi events from Aave, Trader Joe, or GMX — before switching to incremental polling. Send it to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with a filter ID created by eth_newFilter.
eth_getFilterChanges for live updates.eth_getFilterLogs once to backfill, then resume incremental polling without gaps in your AVAX-ecosystem event stream.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | filterId | string | Ja | The log filter ID. Only log filters (eth_newFilter) are valid — block and pending-tx filters are not supported. |
| Typ | Beschreibung |
|---|---|
| array | Array of all log objects matching the filter's criteria. |
Try it live in the Avalanche playground.
| Code | Meldung | Ursache |
|---|---|---|
-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. |
eth_getFilterChanges, this returns every matching log, not just the new ones — over a wide block range or a busy C-Chain contract it can return a large payload and may hit the 10,000-result cap.eth_newFilter; passing a block filter or pending-transaction filter ID returns a filter not found-class error.Parameter
Hex filter ID from eth_newFilter