Optimism
Optimism
Optimism
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
txpool_inspect returns a human-readable text summary of every pending and queued transaction sitting in an OP Mainnet node's transaction pool — the OP Stack rollup that settles to Ethereum L1 and uses ETH for gas. The response is organised by sender address and then by nonce, with each entry rendered as a short string showing recipient, value in wei, and gas. Send the call to https://optimism.therpc.io/YOUR_API_KEY (chain ID 10, 0xa) to get an at-a-glance view of what is waiting to be included by the sequencer.
Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| 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 Optimism playground.
| Code | Meldung | Ursache |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace and is only served by Geth-compatible clients (op-geth); other OP Stack execution clients may not expose it, returning a "method not found" error.txpool_content instead.txpool_status counts.