TriportRPC

txpool_content

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Free

BNB Smart Chain method guide

Last updated:

txpool_content returns the selected BNB Smart Chain node's pending and queued transaction maps.

Each top-level map is keyed by sender address and then nonce, with full transaction objects as values. Use it when an operator needs transaction-level txpool detail rather than aggregate counts.

Unlike txpool_inspect, this method returns transaction objects; unlike txpool_status, it returns the pool contents rather than two counters. It is observational only, and Triport does not expose BSC transaction submission.

Parameters

This method takes no parameters.

Returns

txpool_content return value
FieldType
contentTxPoolContent

Examples

curl https://triport.io/rpc/bsc \
  -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/rpc/bsc", {
  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/rpc/bsc",
    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: BNB Smart Chain.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does txpool_content do?
Return pending and queued transaction maps.
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.