Base
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Base
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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 não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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 | Mensagem | 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.