trace_transaction - Berachain RPC Method
Get traces for a specific transaction on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.
Returns all traces for a specific transaction on Berachain.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
When to Use This Method
- Get parity-style transaction trace - Retrieve the full trace of all internal calls, state changes, and value transfers for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives
- Analyze internal calls and state changes - See every sub-call, delegate call, and contract creation triggered by a transaction on Berachain
- Audit transaction execution paths - Follow the exact flow of execution through contracts to verify correctness
- Track value flows - Trace how funds move through multiple contracts in a single transaction
Best Practices
- Parity-style traces are more detailed than the debug namespace equivalent
- Use trace_replayTransaction for combined trace, vmTrace, and stateDiff output
- Results include both stateDiff and vmTrace sections for comprehensive analysis
- Requires archive node access; not available on standard full nodes
Response Body
ResponseCode Examples
Related Methods
trace_get- Get a specific trace by indextrace_block- Get all traces in a blocktrace_filter- Filter traces by criteria
trace_replayTransaction
Replay a transaction and return traces on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.
eth_chainId
Get the chain ID for Berachain. Essential for transaction signing and network verification.