Ethereum
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Ethereum
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_status is the lightweight counterpart to txpool_inspect: instead of listing the mempool's contents, it just counts them. It comes from Geth's txpool namespace and returns two hex-encoded integers — pending, the transactions ready to be included at their sender's current nonce, and queued, the ones held back behind a nonce gap. Together they tell you how deep the backlog is on an Ethereum node without dragging the full set of transaction objects across the wire. Send it to https://ethereum.therpc.io/YOUR_API_KEY on mainnet (chain ID 1) whenever you want a fast pulse on how busy the pool is. On a quiet stretch pending might sit in the low thousands; during a popular ETH mint it can swell well beyond that.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Ethereum playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace is a Geth thing. A node on a different client, or one that has not exposed the namespace, returns method not found rather than the counts.