Skip to main content

debug_traceCall

Traces a call without creating a transaction on Boba Network.

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 AI-powered dApps, Web2 API integration, enterprise blockchain solutions, and offchain computation

Parameters#

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

Request#

{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"to": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
},
"latest",
{}
],
"id": 1
}

Code Examples#

curl -X POST https://api-boba-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{"to": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b844Bc9e7595f0bEb"},
"latest",
{"tracer": "callTracer"}
],
"id": 1
}'