Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| 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 | Message | Cause |
|---|---|---|
-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.