Docs

debug_traceTransaction - Avalanche RPC Method

Trace a transaction execution on Avalanche. Requires archive node for debugging institutional RWA tokenization ($18B+ transfer volume), gaming subnets, and enterprise blockchains.

Traces a transaction execution on Avalanche by transaction hash.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Use Cases

  • Transaction debugging - Understand exactly what happened
  • Failure analysis - Find where and why a transaction reverted
  • Gas optimization - Analyze gas usage for institutional RWA tokenization ($18B+ transfer volume), gaming subnets, and enterprise blockchains

Tracer Options

  • {} - Default opcode tracer (verbose)
  • { tracer: "callTracer" } - Call tree tracer
  • { tracer: "prestateTracer" } - Pre-state tracer

Code Examples