trace_replayTransaction - Tempo RPC Method
Replay a transaction and return traces on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.
Replays a transaction on Tempo and returns the requested traces.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
Use Cases
- Transaction replay - Re-execute a transaction with full trace output
- State diff extraction - Get exact state changes from a transaction
- VM trace debugging - Get opcode-level execution details for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications
Request Parameters
32-byte transaction hash
Trace types: ["trace"], ["vmTrace"], ["stateDiff"], or combinations
Response Body
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": "trace_replayTransaction",
"params": ["0x50b1857dce8dbe401e09610534de81655bc508c6765eb30ecefe24148c515c28", ["trace"]],
"id": 1
}'Related Methods
trace_replayBlockTransactions- Replay all transactions in a blocktrace_transaction- Get traces without replaytrace_block- Get all traces in a block
trace_replayBlockTransactions
Replay all transactions in a block and return traces on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.
trace_transaction
Get traces for a specific transaction on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.