Optimism
Optimism
Optimism
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_newPendingTransactionFilter registers a server-side filter that watches for transactions entering the OP Mainnet mempool and returns a hex filter ID. Polling that ID with eth_getFilterChanges yields the hashes of pending transactions seen since your last poll. OP Mainnet is the ETH-gas OP Stack rollup at chain ID 10 (0xa), where a single sequencer orders transactions; the pending set you observe reflects what that sequencer has received but not yet sealed into a block. Create the filter against https://optimism.therpc.io/YOUR_API_KEY.
maxFeePerGas and maxPriorityFeePerGas of pending transactions to gauge what tips are landing inclusion on OP Mainnet right now.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| 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 Optimism playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getTransactionByHash for each one to read the sender, value, gas fields, or calldata.eth_getTransactionReceipt.eth_subscribe (newPendingTransactions) stream is more efficient than polling this filter.