Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_getFilterLogs returns the full set of logs matching a log filter you already created on Arbitrum One, ignoring whatever you have polled before. Arbitrum One (chain ID 42161) is an Optimistic Rollup that pays gas in ETH and settles batches to Ethereum L1; its high event throughput from protocols like GMX and Uniswap makes one-shot snapshots handy. Send the request to https://arbitrum.therpc.io/YOUR_API_KEY with a log filter ID and it returns all logs matching the filter's criteria, regardless of prior poll state.
eth_getFilterChanges polling.eth_getFilterLogs once before resuming the eth_getFilterChanges loop.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Arbitrum One 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 ALL matching logs every time, not just new ones — on a wide Arbitrum One filter that can be heavy and may trip the 10,000-result cap.eth_newFilter; a block-filter or pending-tx-filter ID returns a filter not found error.eth_getFilterLogs promptly after creating the filter.参数
Hex filter ID from eth_newFilter