Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_inspect returns a human-readable text summary of every pending and queued transaction held in the node's transaction pool, organised by sender address and then by nonce. Each entry condenses to a one-line string like "<to>: <value> wei + <gas> gas × <gasPrice> wei", so you can scan the pool at a glance instead of parsing full transaction objects. On Arbitrum One (chain ID 42161) — the Optimistic Rollup that settles to Ethereum and prices gas in ETH — transactions flow through the sequencer rather than a public mempool, so what a node exposes here depends on its configuration. Call it with no parameters against https://arbitrum.therpc.io/YOUR_API_KEY.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | Object with `pending` and `queued` keys. Each is a map of sender address → nonce → human-readable string `"<to>: <value> wei + <gas> gas × <gasPrice> wei"`. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace is only exposed by Geth-compatible nodes and is not part of every Arbitrum One client build; a node that omits it answers with a "method not found" error.txpool_content when you need full transaction objects you can read field by field.txpool_status for pending/queued counts instead of pulling the whole inspection dump.