Polygon
Polygon
Polygon
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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).
Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Polygon playground.
| Code | Message | Cause |
|---|---|---|
-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.