TriportRPC

txpool_inspect

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

txpool_inspect returns a textual snapshot of the node's transaction pool. Each pending and queued transaction is rendered as a one-line summary string of the form sender: amount wei + gas × gasPrice wei, keyed by the originating address and then by nonce. It is the formatted, debug-friendly middle ground between txpool_status (just the pending/queued counts) and txpool_content (the full transaction bodies).

Use it for observability and ad-hoc debugging — eyeballing what an address has sitting in the pool, spotting nonce gaps that leave transactions stuck in queued, or checking the gas price of pending transactions during congestion. Because the values are pre-formatted strings rather than structured fields, it is not suited to production indexing or programmatic fee analysis; reach for txpool_content when you need machine-parseable transaction data.

The mempool is a live, node-local view: results reflect the state of the upstream node at the instant of the call and differ between successive requests. This is a premium, pro-tier capability with a deliberately low rate limit — the payload is mid-weight (larger than txpool_status, smaller than txpool_content) and the upstream node spends CPU formatting each entry.

Parameters

This method takes no parameters.

Returns

txpool_inspect 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_inspect","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_inspect",
  "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_inspect","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_inspect do?
Returns a human-readable, formatted summary of every transaction currently in the Polygon mempool, grouped by sender address and nonce.
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.