Skip to main content
POST
txpool_status
curl --request POST \
  --url https://rpc.testnet.tempo.xyz/ \
  --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.

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