Polygon
Polygon
Polygon
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
txpool_status returns just two numbers about a Polygon PoS node's transaction pool: the count of pending transactions (ready to be included in a block) and the count of queued transactions (waiting on a nonce gap or other condition), both hex-encoded. It is the lightweight counterpart to txpool_inspect — perfect for a fast read of mempool depth on a low-fee, ~2-second-block network where backlog can shift quickly. Call it against the Polygon mainnet endpoint at https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89).
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Polygon playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace comes from the Geth family. Polygon's Bor client is Geth-based so it is usually present, but some managed endpoints disable it — be ready for a "method not found" response.