Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_status returns the count of pending and queued transactions in the node's transaction pool as two hex-encoded integers, pending and queued. It is the lightweight counterpart to txpool_inspect: instead of dumping every transaction, it gives you just the totals. On Arbitrum One (chain ID 42161) — the Optimistic Rollup that settles to Ethereum and meters gas in ETH — these counts reflect what the node currently holds in its pool, where pending transactions are ready for inclusion and queued ones are waiting on a nonce gap or other condition. Call it with no parameters at https://arbitrum.therpc.io/YOUR_API_KEY and convert the hex values to decimal for display.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace is only exposed by Geth-compatible nodes, so a node that does not implement it returns a "method not found" error rather than a count.