trace_call - Tempo RPC Method
Trace a call without creating a transaction on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.
Traces a call without creating a transaction on Tempo, returning the trace output.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
Use Cases
- Call simulation - Preview internal calls before sending a transaction
- Contract interaction analysis - Understand how contracts interact
- Gas estimation - Analyze gas usage patterns for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications
Request Parameters
Transaction call object (from, to, gas, value, data)
Trace types: ["trace"], ["vmTrace"], ["stateDiff"], or combinations
Block number or tag (default: latest)
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_call",
"params": [
{"to": "0x0bd34b0a5be345c9bf7a147eb698e993511180cb", "data": "0x70a082310000000000000000000000000bd34b0a5be345c9bf7a147eb698e993511180cb"},
["trace"],
"latest"
],
"id": 1
}'Related Methods
trace_filter- Filter traces by criteriaeth_call- Execute call without tracetrace_transaction- Trace a specific transaction
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.
trace_callMany
Trace multiple calls in sequence on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.