trace_get - Berachain RPC Method
Get a specific trace by transaction hash and index on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.
Returns a trace at a specific position within a 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 a specific trace by transaction hash and trace index - Retrieve individual trace entries from a transaction on Berachain
- Pinpoint specific internal calls - Isolate a particular sub-call at a known position in the call tree for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives
- Targeted debugging - Investigate a specific call depth without retrieving the full transaction trace
- Combine with trace_transaction - Discover trace indices from the full trace, then fetch details individually
Best Practices
- Requires knowing the trace address and index in advance
- Combine with trace_transaction to discover trace indices first
- Supports fetching multiple traces by passing an array of indices
- Requires archive node access; not available on standard full nodes
Response Body
ResponseCode Examples
Related Methods
trace_transaction- Get all traces for a transactiontrace_block- Get all traces in a block
trace_filter
Filter traces by address and block range on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.
trace_replayBlockTransactions
Replay all transactions in a block and return traces on Berachain. Requires archive node for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives.