debug_traceCall
Counts as 5 requests. See Request Counting.
debug_traceCall executes a call against a selected block context and returns execution trace data. It is a paid debug method, not available on Free. Historical block contexts require historical state on that chain.
Parameters
Object- Call object withfrom,to,gas,gasPrice,value, anddatafields as needed.QUANTITY|TAG- Block number or tag.Object- Optional tracer configuration such as{ "tracer": "callTracer" }.
Request
curl -X POST https://bsc-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"debug_traceCall","params":[{"to":"0x0000000000000000000000000000000000000000","data":"0x"},"latest",{"tracer":"callTracer"}],"id":1}'Notes
- Not available on Free endpoints.
- Tracer support depends on the chain.
- Old-block execution context requires historical state on that chain.
Code Examples
curl -X POST https://bsc-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"debug_traceCall","params":[{"to":"0x0000000000000000000000000000000000000000","data":"0x"},"latest",{"tracer":"callTracer"}],"id":1}'