Arbitrum One
Arbitrum One
Arbitrum One
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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).
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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.
| Código | Mensagem | Causa |
|---|---|---|
-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.