Skip to main content
POST
trace_call
Tempo API method that traces a call without creating a transaction. This provides detailed execution traces using the Parity/OpenEthereum trace format.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • callObject — the call object:
    • from — (optional) sender address
    • to — recipient address
    • gas — (optional) gas limit
    • gasPrice — (optional) gas price
    • value — (optional) value to send
    • data — (optional) call data
  • traceTypes — array of trace types to include:
    • trace — basic execution trace
    • vmTrace — full VM execution trace
    • stateDiff — state changes
  • blockParameter — the block number (hex) or tag (latest, earliest, pending)

Response

  • result — the trace result object:
    • output — return data from the call
    • trace — array of trace objects (if requested)
    • vmTrace — VM execution trace (if requested)
    • stateDiff — state differences (if requested)

trace_call code examples

The following example traces a balanceOf call on the pathUSD token:

Body

application/json
jsonrpc
string
default:2.0
method
string
default:trace_call
params
any[]

Call object, trace types array, and block parameter

id
integer
default:1

Response

200 - application/json

Trace result

jsonrpc
string
id
integer
result
object

Trace result object containing output, trace, stateDiff, and vmTrace

Last modified on June 22, 2026