debug_traceTransaction - Tempo RPC Method
Trace a transaction execution on Tempo. Requires archive node for debugging merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.
Traces a transaction execution on Tempo by transaction hash.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
Use Cases
- Transaction debugging - Understand exactly what happened
- Failure analysis - Find where and why a transaction reverted
- Gas optimization - Analyze gas usage for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications
Request Parameters
32-byte transaction hash
Tracer configuration
Response Body
Call type (CALL, DELEGATECALL, STATICCALL, CREATE, CREATE2)
Sender address
Receiver address
Gas provided for the call (hex)
Gas consumed by the call (hex)
Call data (hex)
Return data (hex), present on success
Value transferred in wei (hex)
Revert reason, present on failure
Nested internal calls
Tracer Options
{}- Default opcode tracer (verbose){ tracer: "callTracer" }- Call tree tracer{ tracer: "prestateTracer" }- Pre-state tracer
Code Examples
curl -X POST https://api-tempo-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": ["0x50b1857dce8dbe401e09610534de81655bc508c6765eb30ecefe24148c515c28", {"tracer": "callTracer"}],
"id": 1
}'Related Methods
debug_traceCall- Trace without executingdebug_traceBlockByNumber- Trace entire block
debug_traceCall
Trace a call without creating a transaction on Tempo. Simulate transactions, debug contract interactions, and analyze gas usage with full execution traces.
trace_block
Get traces for all transactions in a block on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.