debug
debug_traceCall
Simulates a call and returns the execution trace without creating a transaction.
Simulates a call and returns the execution trace without creating a transaction on-chain. Useful for debugging smart contract interactions.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | object | Transaction call object — to, from (optional), data, value (optional), gas (optional). |
| 2 | string | Block number (hex) or block tag ("latest", "earliest", "pending"). |
| 3 | object | (optional) Tracer options — {"tracer": "callTracer"} or {"tracer": "prestateTracer"}. |
Returns
Trace result object with gas, returnValue, structLogs (or named tracer output).
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{
"to": "0xA1077a294dDE1B09bB078844df40758a5D0f9a27",
"data": "0x18160ddd"
},
"latest"
],
"id": 1
}'
TRY IT
Notes
- Like
eth_callbut returns the full execution trace instead of just the return value. - The
callTraceroption returns a much smaller call tree instead of raw EVM steps. - No state changes are persisted — this is a pure simulation.
