Skip to main content

trace_transaction

Returns all traces for a specific transaction on MegaETH.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Use Cases#

  • Transaction analysis - See all internal calls made by a transaction
  • Token transfer tracking - Trace value flows through contracts
  • Debugging - Understand execution flow for high-frequency trading, real-time gaming, instant payments, and latency-sensitive applications

Parameters#

ParameterTypeRequiredDescription
txHashDATAYes32-byte transaction hash

Request#

{
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": ["0xed92c2e964d7916f91fbc203f983bb89e15db600c1278d860812fe5c83b06692"],
"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_transaction",
"params": ["0xed92c2e964d7916f91fbc203f983bb89e15db600c1278d860812fe5c83b06692"],
"id": 1
}'