Skip to main content
POST
txpool_status
curl --request POST \
  --url https://tempo-moderato.core.chainstack.com/a25a421add2280d53fdbc23417055501/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "txpool_status",
  "params": [],
  "id": 1
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {
    "pending": "<string>",
    "queued": "<string>"
  }
}
Tempo API method that returns the number of transactions currently pending or queued in the transaction pool.
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 — an object with:
    • pending — number of pending transactions (hex)
    • queued — number of queued transactions (hex)

txpool_status code examples

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

const getTxpoolStatus = async () => {
    const status = await provider.send("txpool_status", []);
    console.log(`Pending: ${parseInt(status.pending, 16)}`);
    console.log(`Queued: ${parseInt(status.queued, 16)}`);
  };

getTxpoolStatus();

Body

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

Response

200 - application/json

Transaction pool status

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