Optimism
Optimism
Optimism
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.
Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| 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 | Message | Cause |
|---|---|---|
-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.