> ## 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_content | Tempo

> Tempo API method that returns the contents of the transaction pool. This includes both pending and queued transactions. Tempo via Chainstack.

> [!NOTE]
>
> Chainstack plans to deprecate Trader Nodes on December 1, 2026. We recommend moving your workloads to [Global Nodes](https://docs.chainstack.com/docs/global-elastic-node.md) before then. See [Migrate from Trader Nodes](https://docs.chainstack.com/docs/migrate-from-trader-nodes.md).

Tempo API method that returns the contents of the transaction pool. This includes both pending and queued transactions.

> [!WARNING]
>
> `txpool_content` is not available on Tempo Global Nodes and Trader Nodes — the call returns `-32601`. See [What gives you mempool access](https://docs.chainstack.com/docs/mempool-configuration.md#what-gives-you-mempool-access).

## 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

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

```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_content", [])
content = result['result']

pending_addresses = list(content['pending'].keys())
queued_addresses = list(content['queued'].keys())

print(f"Pending transactions from {len(pending_addresses)} addresses")
print(f"Queued transactions from {len(queued_addresses)} addresses")

# Show details for pending transactions
for address, txs in content['pending'].items():
    print(f"\nPending from {address}:")
    for nonce, tx in txs.items():
        print(f"  Nonce {nonce}: {tx['hash']}")
        print(f"    To: {tx.get('to', 'Contract Creation')}")
        print(f"    Gas: {int(tx['gas'], 16)}")
```

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


## OpenAPI

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

````