Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_getFilterChanges pulls everything that has matched a previously installed filter on Arbitrum One since your last poll. Arbitrum One (chain ID 42161) is an Optimistic Rollup whose sequencer produces sub-second soft confirmations and settles to Ethereum L1 with gas paid in ETH, so a tight poll loop sees new events quickly. Call it against https://arbitrum.therpc.io/YOUR_API_KEY with a filter ID and it returns, depending on the filter type, an array of log objects, block hash strings, or pending transaction hash strings — and an empty array when nothing new has arrived.
Transfers on Arbitrum One — without resending the filter criteria each time.eth_newBlockFilter once, then poll eth_getFilterChanges repeatedly to react to each new sequencer block.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | filterId | string | 是 | The filter ID to poll. |
| 类型 | 描述 |
|---|---|
| array | For log filters: array of log objects. For block filters: array of block hash strings. For pending-tx filters: array of transaction hash strings. Empty array if no new events. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32000 | filter not found | Filter ID is invalid, expired (>5 min inactivity), or was already uninstalled. |
filter not found error and recreate the filter rather than assuming it lives forever.removed field — Arbitrum's soft-confirmed blocks can be reorganised before they settle to L1, and removed: true marks a log that was rolled back.参数
Hex filter ID from eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter