Avalanche
Avalanche
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Avalanche 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. |
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.参数
Hex filter ID from eth_newFilter