Ethereum
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Ethereum
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_inspect opens a window onto an Ethereum node's mempool — the staging area where transactions wait before a validator includes them in a block. It belongs to Geth's txpool namespace and returns a human-readable text summary of everything the node is currently holding, split into pending (ready to be mined at the sender's current nonce) and queued (waiting on an earlier nonce or other gap). The output is keyed by sender address and then by nonce, with each entry condensed to a one-line string showing the recipient, the ETH value in wei, and the gas. Call it on mainnet (chain ID 1) at https://ethereum.therpc.io/YOUR_API_KEY when you need a quick eyeball view of what is sitting in the pool right now.
pending or stranded in queued behind a missing nonce.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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 Ethereum playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace. Nodes running other clients, or Geth instances that have not enabled the namespace, will answer method not found, so do not assume it is universally available.txpool_content instead.txpool_status gives you the counts at a fraction of the payload size.