Optimism
Optimism
Optimism
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_status returns the count of pending and queued transactions in an OP Mainnet node's transaction pool — the OP Stack rollup that settles to Ethereum L1 and uses ETH for gas — as two hex-encoded integers under the pending and queued keys. It is the lightweight counterpart to txpool_inspect: instead of listing every transaction, it gives you just the totals, which makes it cheap to poll. Send the call to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa) to gauge mempool depth at a glance.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Optimism playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace, served only by Geth-compatible clients (op-geth); other execution clients may return "method not found".