eth_call but returns detailed execution traces, making it useful for debugging contract calls before sending actual transactions.
Get you 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
object— the transaction call object:from(optional) — address the transaction is sent fromto— address the transaction is directed togas(optional) — gas provided for the callgasPrice(optional) — gas price for the callvalue(optional) — value sent with the calldata(optional) — hash of the method signature and encoded parameters
quantity|tag— the block number as a hexadecimal string, or block tag (latest,earliest,pending).object(optional) — the tracer options:tracer— the tracer to use (e.g.,callTracer,prestateTracer)tracerConfig— configuration options for the tracertimeout— timeout for the trace operation
Response
result— the trace result object. The structure depends on the tracer used:- For
callTracer:type— the call type (CALL, CREATE, etc.)from— sender addressto— recipient addressvalue— value transferredgas— gas providedgasUsed— gas usedinput— call dataoutput— return datacalls— nested calls
- For
debug_traceCall code examples
Use case
A practical use case fordebug_traceCall is simulating complex contract interactions before sending transactions to understand the execution path, identify potential failures, and verify expected behavior without spending gas.Body
application/json