Skip to main content
POST
txpool_content
curl --request POST \
  --url https://tempo-moderato.core.chainstack.com/a25a421add2280d53fdbc23417055501/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "txpool_content",
  "params": [],
  "id": 1
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {
    "pending": {},
    "queued": {}
  }
}
Tempo API method that returns the contents of the transaction pool. This includes both pending and queued transactions.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

None.

Response

  • result — object containing pending and queued transactions:
    • pending — object mapping addresses to their pending transactions (keyed by nonce)
    • queued — object mapping addresses to their queued transactions (keyed by nonce)
Each transaction object contains:
  • hash — transaction hash
  • nonce — sender’s nonce
  • from — sender address
  • to — recipient address
  • value — value in wei
  • gas — gas limit
  • gasPrice — gas price
  • input — transaction data

txpool_content code examples

const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);

const getTxpoolContent = async () => {
    const content = await provider.send("txpool_content", []);

    const pendingAddresses = Object.keys(content.pending);
    const queuedAddresses = Object.keys(content.queued);

    console.log(`Pending transactions from ${pendingAddresses.length} addresses`);
    console.log(`Queued transactions from ${queuedAddresses.length} addresses`);

    // Show details for pending transactions
    for (const [address, txs] of Object.entries(content.pending)) {
      console.log(`\nPending from ${address}:`);
      for (const [nonce, tx] of Object.entries(txs)) {
        console.log(`  Nonce ${nonce}: ${tx.hash}`);
        console.log(`    To: ${tx.to || 'Contract Creation'}`);
        console.log(`    Gas: ${parseInt(tx.gas, 16)}`);
      }
    }
  };

getTxpoolContent();

Body

application/json
jsonrpc
string
default:2.0
method
string
default:txpool_content
params
any[]
id
integer
default:1

Response

200 - application/json

Transaction pool content

jsonrpc
string
id
integer
result
object
Last modified on January 28, 2026