Optimism
Optimism
Optimism
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.
Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Optimism playground.
| Code | Meldung | Ursache |
|---|---|---|
-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".