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 instead; for just the pending/queued counts call txpool_status.
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
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"txpool_inspect","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "txpool_inspect",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"txpool_inspect","params":[],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- 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.