Arbitrum One
Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_newPendingTransactionFilter creates a server-side filter on Arbitrum One for incoming pending transactions and returns a hex filter ID. Polling that ID with eth_getFilterChanges yields the hashes of transactions that have entered the node's pending set since your last poll. On Arbitrum One — the ETH-fee Optimistic Rollup on Nitro/ArbOS — a single sequencer orders transactions rather than a public peer-to-peer mempool, so the pending window is brief: the sequencer's sub-second soft confirmations mean a transaction usually moves from pending to mined very quickly. The endpoint is https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161, 0xa4b1).
from and react before it is mined.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string | Hex filter ID. When polled with eth_getFilterChanges, yields an array of new pending transaction 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_getTransactionByHash for each one to read sender, value, and gas fields.eth_getTransactionReceipt to confirm inclusion.eth_subscribe over WebSocket instead of repeated polling.