> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# txpool_status | Tempo

> Tempo API method that returns the number of transactions currently pending or queued in the transaction pool. Tempo via Chainstack.

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

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  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();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("txpool_status", [])
  status = result['result']
  print(f"Pending: {int(status['pending'], 16)}")
  print(f"Queued: {int(status['queued'], 16)}")
  ```

  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "txpool_status", "params": [], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/tempo_node_api/txpool/txpool_status.json POST /
openapi: 3.0.0
info:
  title: txpool_status Tempo example
  version: 1.0.0
  description: This is an API example for txpool_status for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Txpool
      summary: txpool_status
      operationId: tempo-txpool-status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: txpool_status
                params:
                  type: array
                  items: {}
                  default: []
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Transaction pool status
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      pending:
                        type: string
                        description: Number of pending transactions
                      queued:
                        type: string
                        description: Number of queued transactions

````