# Ethereum txpool_inspect RPC method

Ethereum API method that returns a textual summary of all pending and queued transactions.

Information

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

Parameters:

  • none

Returns:

  • array — the list of pending and queued transactions, with each having the following fields:
    • pending — the array of transaction objects with textual data.
    • queued — the array of transaction objects with textual data.

Example:

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

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