Arbitrum One
Arbitrum One
Arbitrum One
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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).
Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| 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.
| Code | Message | Cause |
|---|---|---|
-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.