Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
txpool_status returns the number of pending and queued transactions in an Avalanche C-Chain node's transaction pool, as two hex-encoded integers. Pending transactions are ready for inclusion in the next block; queued ones are waiting on a nonce gap or other condition. It is the lightweight counterpart to txpool_inspect — just the totals, no per-transaction detail — which makes it ideal for cheap, frequent polling of mempool depth. On the C-Chain, the EVM chain where AVAX pays for gas under Snowman/Avalanche consensus, these counts give a quick read on congestion. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a).
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Avalanche playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace is Geth-style. Avalanche C-Chain's coreth client is Geth-derived, but not every endpoint enables it, so a node without the namespace returns "method not found".