Skip to main content

trace_block

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.

Use Cases#

  • Block analysis - Inspect all internal transactions in a block
  • MEV research - Analyze transaction ordering and internal calls
  • Indexing - Build comprehensive transaction indexes for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications

Parameters#

ParameterTypeRequiredDescription
blockNumberQUANTITY|TAGYesBlock number in hex or tag (latest, earliest, pending)

Request#

{
"jsonrpc": "2.0",
"method": "trace_block",
"params": ["latest"],
"id": 1
}

Code Examples#

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