Optimism
Optimism
Optimism
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.
Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Optimism playground.
| Code | Message | Cause |
|---|---|---|
-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".