TriportRPC

txpool_content

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

txpool_content returns the full contents of the backing node's transaction pool as a single point-in-time, atomic snapshot: the complete transaction objects for every transaction that is either pending (executable on the next block) or queued (valid but not yet executable, typically because of a nonce gap). It is the heavyweight member of the txpool family — where txpool_status returns only counts and txpool_inspect returns short summary strings, txpool_content returns every field of every transaction.

Use it when you need the whole mempool at once rather than a live feed: building an MEV snapshot, computing a gas-price distribution across pending transactions, or running offline mempool analytics. If instead you want to react to individual transactions as they arrive, prefer a streaming subscription — txpool_content is a periodic snapshot, complementary to (not a replacement for) a push stream.

This method belongs to the polygon_txpool category and requires the Pro tier. It is intentionally heavy: on Polygon mainnet the pool commonly holds 8,000+ pending transactions, producing a response payload in the 5–50 MB range. The rate limit is correspondingly low — 1 RPS on Pro, 2 RPS on Business — and you should keep concurrency very small (see Notes). The contents reflect the specific node serving your request, so the exact set of transactions varies between calls and is not a consensus view of the global mempool.

It takes no parameters.

Parameters

This method takes no parameters.

Returns

txpool_content return value
FieldType
resultobject

Examples

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

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Polygon.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does txpool_content do?
Returns a complete, atomic snapshot of the node's transaction pool — every pending and queued transaction, 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.