Arbitrum One
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Arbitrum One
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | filterId | string | Sí | The filter ID to poll. |
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-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.Parámetros
Hex filter ID from eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter