Polygon
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Polygon
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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).
Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| 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 | Meldung | Ursache |
|---|---|---|
-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.