TriportRPC

txpool_content

POSThttps://triport.io/rpc/bsc

Return pending and queued transaction maps.

BNB Smart Chainbsc:rpcbsc_read_rpc - 15 / 20 / 100 / 250 RPS (free / basic / pro / business) (default, unmeasured); enterprise unlimited

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

JSON-RPC params must be an empty array: [].

Response

The response below is the checked fixture for this method; it is reproduced without changing its fields or values.

resultobject
Selected node's txpool content.
result.pendingobject
Pending transactions grouped by sender and nonce.
result.queuedobject
Queued transactions grouped by sender and nonce.

Errors

Errors use the standard JSON-RPC error envelope. See BSC errors for network-specific classification and the linked shared reference.

CodeMeaningWhen it happens
-32602Invalid paramsA required positional parameter is missing or a value does not match the OpenRPC schema.
401UnauthorizedThe x-token API key is missing or invalid.
429Rate limitedThe request exceeds the configured category RPS for the caller's tier.

Examples

JavaScript (fetch)

const response = await fetch("https://triport.io/rpc/bsc", {
  method: "POST",
  headers: {
    "x-token": process.env.TRIPORT_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "jsonrpc": "2.0",
    "id": 1,
    "method": "txpool_content",
    "params": []
  }),
});


const payload = await response.json();
console.log(payload.result);

Notes

  • The snapshot belongs to the selected upstream node and is not a canonical or pool-wide mempool view.
  • The BSC categories use configured defaults of 15 / 20 / 100 / 250 RPS; they are marked unmeasured in the tier matrix.
  • Related methods: txpool_inspect, txpool_status, eth_getTransactionByHash.