Docs
Supported ChainsMegaETHJSON-RPC APITxpool Methods

txpool_content - MegaETH RPC Method

Inspect the full pending and queued transaction pool on MegaETH. Useful for mempool analytics, transaction replacement debugging, and operational monitoring.

Returns the full pending and queued transaction pool for the connected MegaETH endpoint. Transactions are grouped first by sender address and then by nonce.

Non-standard method. txpool_content is a Geth-style mempool inspection method. It is not part of the core Ethereum Execution API method set, and many shared RPC endpoints disable it because of response size and sensitivity concerns.

Why MegaETH? Build on the first real-time blockchain with sub-millisecond latency and 100,000+ TPS with sub-millisecond transaction streaming with 100,000+ sustained TPS and full EVM compatibility.

When to Use This Method

txpool_content is useful for high-frequency DeFi developers, gaming studios, and teams building real-time applications:

  • Replacement Transaction Debugging — Inspect multiple transactions with the same sender and nonce
  • Mempool Analytics — Analyze which accounts dominate pending flow and how backlogs are distributed
  • Relayer Operations — Verify whether submitted transactions are still pending, queued, or replaced
  • Fee Strategy Tuning — Inspect real mempool fee levels and transaction types across the pending pool

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
pendingObject

Address-indexed map of processable transactions grouped by nonce

queuedObject

Address-indexed map of non-processable transactions grouped by nonce

Error Responses

Errors
Error Response-32601

Code Examples

Bash
curl -X POST https://api-megaeth-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "txpool_content",
    "params": [],
    "id": 1
  }'

Error Handling

Error CodeMessageDescription
-32601Method not foundThe endpoint does not expose txpool methods
-32603Internal errorThe node rejected or failed to process the request