Executes a call and returns detailed trace information without creating a transaction. This method simulates transaction execution and provides debugging information including call traces and state changes.
debug_traceCall JSON-RPC method executes a call and returns detailed trace information without creating a transaction. This method simulates transaction execution and provides comprehensive debugging information including call traces, gas usage, and state changes, making it essential for testing and debugging smart contract interactions before committing transactions to the blockchain.
from (string, optional): Address the transaction is sent fromto (string, required): Address the transaction is directed togas (string, optional): Gas provided for the transaction executiongasPrice (string, optional): Gas price for the transactionvalue (string, optional): Value sent with the transactiondata (string, optional): Hash of the method signature and encoded parameterstracer (string): The type of tracer to use
"callTracer": Provides detailed call trace information"prestateTracer": Shows state before execution"4byteTracer": Tracks function selector usagetype — The type of call (CALL, DELEGATECALL, STATICCALL, CREATE, etc.)from — The address that initiated the callto — The address that received the callvalue — The value transferred in the callgas — The amount of gas allocated for the callgasUsed — The amount of gas actually consumedinput — The input data for the calloutput — The output data returned by the callcalls — Array of sub-calls made during executiondebug_traceCall method is essential for applications that need to: