Optimism
Optimism
Optimism
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
txpool_status returns the count of pending and queued transactions in an OP Mainnet node's transaction pool — the OP Stack rollup that settles to Ethereum L1 and uses ETH for gas — as two hex-encoded integers under the pending and queued keys. It is the lightweight counterpart to txpool_inspect: instead of listing every transaction, it gives you just the totals, which makes it cheap to poll. Send the call to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa) to gauge mempool depth at a glance.
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 Optimism playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace, served only by Geth-compatible clients (op-geth); other execution clients may return "method not found".