Skip to main content

debug_traceCall

Traces a call without creating a transaction on Avalanche.

Archive Node Required

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

Use Cases#

  • Transaction simulation - Debug before sending
  • Gas analysis - Analyze gas usage per opcode
  • Contract debugging - Step through execution for institutional RWA tokenization ($18B+ transfer volume), gaming subnets, and enterprise blockchains

Parameters#

ParameterTypeRequiredDescription
callObjectYesCall object (same as eth_call)
blockNumberQUANTITY|TAGYesBlock number or tag
tracerConfigObjectNoTracer configuration

Request#

{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"to": "0x09383137c1eee3e1a8bc781228e4199f6b4a9bbf",
"data": "0x70a0823100000000000000000000000009383137c1eee3e1a8bc781228e4199f6b4a9bbf"
},
"latest",
{}
],
"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_traceCall",
"params": [
{"to": "0x09383137c1eee3e1a8bc781228e4199f6b4a9bbf", "data": "0x70a0823100000000000000000000000009383137c1eee3e1a8bc781228e4199f6b4a9bbf"},
"latest",
{"tracer": "callTracer"}
],
"id": 1
}'