Base
Base
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.