BNB Smart Chain
BNB Smart Chain
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
When BNB-funded transactions pile up on BNB Smart Chain during a busy PancakeSwap window, txpool_inspect lets you peer straight into the node's mempool. It belongs to the geth-family txpool namespace and returns a human-readable text summary of every pending and queued transaction the node is holding, organised first by sender address and then by nonce. Each entry collapses to a one-line string that names the recipient alongside the BNB value and gas terms. Call it at https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 for an at-a-glance read on what is waiting to be mined versus what sits parked behind a nonce gap.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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 BNB Smart Chain playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace, so nodes built on other client lineages may not expose it and will reject the call as unknown.txpool_content when you need structured, full transaction objects in code.txpool_status when all you want is a lightweight pending-versus-queued count.