trace_block - MegaETH RPC Method
Get traces for all transactions in a block on MegaETH. Requires archive node for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.
Returns traces for all transactions in a block on MegaETH.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
When to Use This Method
- Trace all transactions in a block by block number - Get the full trace of every transaction in a block on MegaETH
- Block-level execution analysis - Inspect all internal calls, transfers, and contract interactions within a block for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications
- MEV research - Analyze transaction ordering, sandwich patterns, and arbitrage across a full block
- Historical block replay - Replay and trace blocks at any point in MegaETH chain history
Best Practices
- Similar to trace_replayBlockTransactions but without explicit replay configuration
- Use block hash variant (
debug_traceBlockByHash) for reorg-safe queries - Traces from dense blocks can be very large; process results in batches
- Requires archive node access; not available on standard full nodes
Response Body
ResponseCode Examples
Related Methods
trace_filter- Filter traces by address or block rangetrace_transaction- Trace a specific transactiontrace_get- Get a specific trace by index
eth_newPendingTransactionFilter
Create a filter for pending transaction notifications on MegaETH. Essential for mempool monitoring, transaction tracking, and MEV opportunity detection for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.
trace_call
Trace a call without creating a transaction on MegaETH. Requires archive node for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications.