debug_traceTransaction - XDC Network RPC Method
Trace a transaction execution on XDC Network. Requires archive node for debugging tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization.
Traces a transaction execution on XDC Network 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 tokenized trade finance (Letters of Credit, Bills of Lading), cross-border payments, and real-world asset tokenization
Tracer Options
{}- Default opcode tracer (verbose){ tracer: "callTracer" }- Call tree tracer{ tracer: "prestateTracer" }- Pre-state tracer
Code Examples
Related Methods
debug_traceCall- Trace without executingdebug_traceBlockByNumber- Trace entire block