Arbitrum One
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Arbitrum One
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | filterId | string | نعم | The filter ID to poll. |
| النوع | الوصف |
|---|---|
| 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.
| الكود | الرسالة | السبب |
|---|---|---|
-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.المعاملات
Hex filter ID from eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter