debug_traceTransaction - Moonbeam RPC Method
Trace a transaction execution on Moonbeam. Requires archive node for debugging cross-chain DeFi, multi-chain dApps, and Ethereum-to-Polkadot bridging via XCM, Axelar, LayerZero, and Wormhole.
Traces a transaction execution on Moonbeam 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 cross-chain DeFi, multi-chain dApps, and Ethereum-to-Polkadot bridging via XCM, Axelar, LayerZero, and Wormhole
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