Docs

debug_traceTransaction - Zetachain RPC Method

Trace a transaction execution on Zetachain. Requires archive node for debugging omnichain DeFi, native Bitcoin smart contracts, cross-chain asset management, and unified liquidity aggregation.

Traces a transaction execution on Zetachain 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 omnichain DeFi, native Bitcoin smart contracts, cross-chain asset management, and unified liquidity aggregation

Tracer Options

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

Code Examples