Polygon
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Polygon
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
txpool_inspect returns a human-readable text summary of every transaction sitting in a Polygon PoS node's transaction pool, split into pending and queued and organised by sender address and nonce. Each entry condenses a transaction into a short string showing recipient, MATIC value, gas, and gas price — handy for eyeballing mempool state without parsing full transaction objects. On Polygon, where low fees and ~2-second blocks keep the mempool churning, it is a quick way to see what is in flight. Send the request to 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` 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 Polygon playground.
| Code | Message | Cause |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace is a Geth-family feature. Since Polygon's Bor client is Geth-based it is usually available, but not every node or managed endpoint exposes it, so handle a "method not found" response.txpool_content instead.txpool_status, which returns lightweight pending and queued counts.