TriportRPC

txpool_content

Last updated:

`txpool_content` returns the full content of the backing node's transaction pool: the complete transaction objects for every transaction that is either **pending** (executable on the next block) or **queued** (not yet executable, typically because of a nonce gap). It is the heavyweight introspection call in the `txpool` family — where [txpool_status](./txpool_status.md) returns only counts and [txpool_inspect](./txpool_inspect.md) returns short summary strings, `txpool_content` returns every field of every transaction.

This method belongs to the `eth_txpool` category and is available from the **Pro** tier. Because the response can be very large and the pool is highly node-specific, the rate limit is intentionally **very low — 1 RPS on Pro, 2 RPS on Business**. Call it sparingly: poll on the order of seconds, never in a tight loop, and prefer `txpool_status` / `txpool_inspect` when you only need counts or a summary. The contents reflect the specific node serving your request, so the exact set of transactions will vary between calls and between nodes, and is not a consensus view of the network mempool.

It takes no parameters.

Parameters

This method takes no parameters.

Returns

txpool_content return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"txpool_content","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "txpool_content",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"txpool_content","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_content do?
Returns every pending and queued transaction currently held in the node's transaction pool, grouped by sender address and nonce.
How many credits does txpool_content cost?
txpool_content costs 1 credit(s) per call on Triport by default.
Is txpool_content available over WebSocket?
txpool_content is an HTTP JSON-RPC method.