Polygon
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Polygon
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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).
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-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.