Base
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Base
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-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.