debug_traceCall RPC Method
Parameters
object
object
Loading...
from
string
Loading...
to
string
Loading...
gas
integer
Loading...
gasPrice
integer
Loading...
value
integer
Loading...
data
string
Loading...
blockReference
string
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...
Returns
result
Loading...
from
Loading...
gas
Loading...
gasUsed
Loading...
to
Loading...
input
Loading...
calls
Loading...
value
Loading...
type
Loading...
Request
curl https://docs-demo.sei-pacific.quiknode.pro/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"debug_traceCall","params":[{"from":null,"to":"0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b","data":"0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07"}, "0x1ABBB55", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
require 'eth' client = Eth::Client.create 'https://docs-demo.sei-pacific.quiknode.pro/' payload = { "jsonrpc": "2.0", "method": "debug_traceCall", "params": [{ "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07" }, "0x1ABBB55", {"tracer": "callTracer"}], "id": "1" } response = client.send(payload.to_json) puts response
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("https://docs-demo.sei-pacific.quiknode.pro/"); const response = await provider.send("debug_traceCall", [ { "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07", }, "0x1ABBB55", {"tracer": "callTracer"} ]); console.log(response); })();
var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "method": "debug_traceCall", "params": [ { "from": null, "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07" }, "0x1ABBB55", {"tracer": "callTracer"} ], "id": 1, "jsonrpc": "2.0" }); var requestOptions = { method: 'POST', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("https://docs-demo.sei-pacific.quiknode.pro/", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
import requests import json url = "https://docs-demo.sei-pacific.quiknode.pro/" payload = json.dumps({ "method": "debug_traceCall", "params": [ { "from": None, "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07" }, "0x1ABBB55", {"tracer": "callTracer"} ], "id": 1, "jsonrpc": "2.0" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.sei-pacific.quiknode.pro/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "method": "debug_traceCall", "params": [ { "from": nil, "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07" }, "0x1ABBB55", {"tracer": "callTracer"} ], "id": 1, "jsonrpc": "2.0" }) response = https.request(request) puts response.read_body
from web3 import HTTPProvider client = HTTPProvider('https://docs-demo.sei-pacific.quiknode.pro/') params = [{ "to": "0x16b5856dbc2f66d6dc5b361b0073f51ed5ffb52b", "data": "0x727fa213619edc134b3c8b36e117a4b8e95cb5f7cd2330eab81aa241346ebe07" }, "0x1ABBB55", {"tracer": "callTracer"}] response = client.make_request('debug_traceCall', params) print(response)
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free