txpool_content

The txpool_content method returns the full detailed content of the transaction pool including all pending and queued transactions. This method provides comprehensive information about every transaction waiting to be mined, showing complete transaction objects organized by sender address and nonce.

The method is particularly valuable for advanced use cases such as analyzing mempool contents in detail, monitoring transaction activity across the network, building MEV (Maximal Extractable Value) extraction bots, debugging stuck transactions, and understanding network congestion patterns. Unlike txpool_status which provides only counts, or txpool_inspect which provides summaries, this method returns the complete transaction data including all parameters. This can be resource-intensive on busy networks with large mempools.

This method is only available on nodes with txpool enabled. The response can be very large during periods of high network activity.


Parameters

This method does not require any parameters.

Return Object

The method returns an object containing two main categories of transactions, each organized by sender address and nonce:

field
type
description
pending
object
Transactions that are ready to be included in the next block, organized by sender address. Each address maps to an object where keys are nonces and values are complete transaction objects with all fields (from, to, value, gas, gasPrice, hash, input, nonce, type, chainId, v, r, s, etc.)
queued
object
Transactions that are not yet eligible for inclusion (nonce is higher than current account nonce), organized in the same structure as pending transactions

Pending transactions have consecutive nonces starting from the account's current nonce. Queued transactions have nonce gaps and must wait for preceding transactions to be mined.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?