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.