debug_traceTransaction
The debug_traceTransaction method returns the full trace of a transaction that has already been executed and included in a block on the Optimism network. This method provides comprehensive debugging information including all internal calls, opcode execution, gas consumption at each step, and storage modifications. It's essential for post-mortem analysis of transactions, identifying bugs in smart contracts, and understanding complex transaction flows involving multiple contract interactions.
Parameters
parameter | type | description |
|---|---|---|
transactionHash | string (required) | The hash of the transaction to trace |
traceConfig | object (optional) | Configuration options (tracer, timeout, disableStorage, disableMemory, disableStack, enableMemory, enableReturnData) |
Return Object
The method returns the complete execution trace with detailed information about each operation performed during transaction execution.
Request Example
Request
Response Example
Response