# Ethereum txpool_status RPC method

Ethereum API method that returns the number of transactions in pending and queued state.

Information

Learn how to deploy a node with the debug and trace API methods enabled.

Parameters:

  • none

Returns:

  • object — the object having the following fields:
    • pending — the number of pending transactions in the txpool, encoded as hexadecimal.
    • queued — the number of queued transactions in the txpool, encoded as hexadecimal.

Example:

  • web3.py
  • cURL
from web3 import Web3
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))

pool = web3.geth.txpool.status()
print(pool)