Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
txpool_inspect returns a human-readable text summary of every pending and queued transaction in an Avalanche C-Chain node's transaction pool, organized by sender address and then by nonce. Each entry condenses a transaction into a short string showing the recipient, value, gas, and gas price, so you can scan the mempool without parsing full transaction objects. On the C-Chain — the EVM chain where AVAX pays for gas, secured by Snowman/Avalanche consensus — this is handy for understanding what is waiting to be included as blocks finalize every one to two seconds. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a).
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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 Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace is Geth-style; Avalanche C-Chain runs coreth, which is Geth-derived, but not every endpoint exposes this namespace. If it is disabled you will get a "method not found" error.txpool_content instead of scraping these strings.txpool_status, which returns lightweight pending and queued totals.