Skip to main content

trace_transaction

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.

Use Cases#

  • Transaction analysis - See all internal calls made by a transaction
  • Token transfer tracking - Trace value flows through contracts
  • Debugging - Understand execution flow for liquidity-aligned DeFi (Infrared, Kodiak), yield farming, and validator-integrated liquidity incentives

Parameters#

ParameterTypeRequiredDescription
txHashDATAYes32-byte transaction hash

Request#

{
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": ["0xc5c421e9e1f89c46d6f23e4057f24ed39fe8c8d75f0dc27159b46f8b6ece3671"],
"id": 1
}

Code Examples#

curl -X POST https://api-berachain-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": ["0xc5c421e9e1f89c46d6f23e4057f24ed39fe8c8d75f0dc27159b46f8b6ece3671"],
"id": 1
}'