debug_traceTransaction

Replays a transaction in its original block context and returns debug output for the selected tracer.

Request

This endpoint expects an object.
transactionHashstringRequiredformat: "^0x[a-fA-F0-9]{64}$"
Hash of the transaction to replay.
traceConfigobjectOptional
Optional trace configuration. Omit it or pass an empty object to use the default struct logger.

Response

Debug trace result for the transaction.
StructLoggerResultobject

Default opcode-level struct logger result.

OR
CallTracerResultany
OR
PrestateTracerResultmap from strings to objects
Prestate tracer result keyed by dynamic account address.
OR
GenericTracerResultmap from strings to any

Client-specific output returned by named or custom tracers not modeled by the known schemas.