debug_traceTransaction - Berachain RPC Method
Trace a transaction execution on Berachain. Requires archive node for debugging liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.
Traces a transaction execution on Berachain 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 liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives
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
debug_traceCall
Trace a call without creating a transaction on Berachain. Simulate transactions, debug contract interactions, and analyze gas usage with full execution traces.
trace_block
Get traces for all transactions in a block on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.