TriportRPC

txpool_inspect

Last updated:

`txpool_inspect` lists the transactions the backing Ethereum node is holding in its mempool, grouped into `pending` (executable now) and `queued` (not yet executable, e.g. a nonce gap). The result is keyed by sender address and then by nonce. Each transaction is rendered as a short, human-readable **string** rather than a full transaction object — `recipient: value wei + gas × gasPrice wei`.

Use it for a quick, low-bandwidth overview of mempool state: which senders have transactions in flight, at which nonces, and at what value and price. When you need the full structured transaction objects (input data, signatures, fee fields, etc.) call [txpool_content](./txpool_content.md) instead; for just the pending/queued counts call [txpool_status](./txpool_status.md).

This method belongs to the `eth_txpool` category and is restricted to the **Pro** tier and above. The data reflects the specific node serving your request — the mempool is local to each node, varies continuously, and is not consensus state, so successive calls (and calls hitting different nodes) will differ. It takes no parameters.

Parameters

This method takes no parameters.

Returns

txpool_inspect return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"txpool_inspect","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "txpool_inspect",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"txpool_inspect","params":[],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. Credit cost: 1 per call.

FAQ

What does txpool_inspect do?
Returns a compact, human-readable summary of the transactions currently pending and queued in the node's transaction pool.
How many credits does txpool_inspect cost?
txpool_inspect costs 1 credit(s) per call on Triport by default.
Is txpool_inspect available over WebSocket?
txpool_inspect is an HTTP JSON-RPC method.