Skip to main content

debug_traceBlock

Traces all transactions in a block on Avalanche by block RLP.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Use Cases#

  • Transaction debugging - Analyze transaction execution step-by-step
  • Smart contract analysis - Debug contract interactions
  • Security auditing - Trace internal calls for institutional RWA tokenization ($18B+ transfer volume), gaming subnets, and enterprise blockchains

Parameters#

ParameterTypeRequiredDescription
blockRlpDATAYesRLP-encoded block data
tracerConfigObjectNoTracer configuration

Request#

{
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": ["0xf9..."],
"id": 1
}

Code Examples#

curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": ["0xf9..."],
"id": 1
}'