Base
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Base
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_newPendingTransactionFilter creates a server-side filter that watches for incoming pending transactions on Base — Coinbase's OP Stack rollup where gas is paid in ETH — and returns a hex filter ID. Polling that ID with eth_getFilterChanges returns the hashes of transactions that entered the node's mempool since your last poll. On Base, transactions flow to the sequencer for ordering, and the ~2s block time means pending hashes move into blocks quickly. Create the filter against https://base.therpc.io/YOUR_API_KEY (Base mainnet, chain ID 8453 / 0x2105); it takes no parameters.
eth_getTransactionByHash, react to those from a specific sender address.maxPriorityFeePerGas and maxFeePerGas of pending transactions to gauge current tip pressure on Base before you submit your own.Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| 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 Base playground.
| Code | Meldung | Ursache |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getTransactionByHash to retrieve the full transaction details for any hash you care about.eth_subscribe("newPendingTransactions") stream over repeated filter polling.