Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_newBlockFilter creates a server-side filter on Arbitrum One that tracks new block arrivals and returns a hex filter ID. You then poll that ID with eth_getFilterChanges to receive the hashes of blocks produced since your last poll. Arbitrum One — the ETH-fee Optimistic Rollup on Nitro/ArbOS — gives sub-second soft confirmations from its sequencer, so blocks arrive quickly and you should poll at a brisk cadence to keep up. The endpoint is https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161, 0xa4b1).
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string | Hex filter ID. When polled with eth_getFilterChanges, yields an array of new block hashes since the last poll. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getBlockByHash for each hash when you need the block's contents.eth_getFilterChanges returns a filter-not-found error, recreate the filter and resume.