Executes a call and returns trace information using OpenEthereum-style tracing. This method simulates a transaction and provides detailed execution traces without committing changes to the blockchain.
trace_call JSON-RPC method executes a call and returns trace information using OpenEthereum-style tracing. This method simulates a transaction and provides detailed execution traces without committing changes to the blockchain, making it ideal for transaction analysis, debugging, and testing before actual execution.
from (string, optional): Address the transaction is sent fromto (string, required): Address the transaction is directed togas (string, optional): Gas provided for 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 parameters"trace": Basic execution trace information"vmTrace": Virtual machine execution trace"stateDiff": State differences caused by the transactionaction — Details about the call action (from, to, value, gas, input, callType)result — Execution result (gasUsed, output)traceAddress — Address path within the call hierarchytype — Type of trace (call, create, suicide, etc.)trace_call method is essential for applications that need to: