debug_traceCall RPC Method
This method requires appending
/nanoreth to your HyperLiquid endpoint URL. Debug and Trace methods are not supported on /evm endpoints. Use /nanoreth instead of /evm to access debugging functionality.Parameters
object
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
integer
Loading...
gasPrice
integer
Loading...
value
integer
Loading...
data
string
Loading...
blockNumber
string
REQUIRED
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
callTracer
string
Loading...
prestateTracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...
timeout
string
Loading...
Returns
result
object
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
output
string
Loading...
error
string
Loading...
calls
array
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
output
string
Loading...
type
string
Loading...
value
string
Loading...
value
string
Loading...
type
string
Loading...
Request
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"debug_traceCall","params":[{"to":"0x742d35Cc6634C0532925a3b844Bc454e6595f0bE","data":"0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"},"latest",{"tracer":"callTracer"}],"id":1}'5
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"debug_traceCall","params":[{"to":"0x742d35Cc6634C0532925a3b844Bc454e6595f0bE","data":"0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"},"latest",{"tracer":"callTracer"}],"id":1}'5
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4payload = {5"jsonrpc": "2.0",6"method": "debug_traceCall",7"params": [{"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE", "data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"}, "latest", {"tracer": "callTracer"}],8"id": "1"9}1011response = client.send(payload.to_json)12puts response13
1require 'eth'23client = Eth::Client.create 'https://docs-demo.hype-mainnet.quiknode.pro/evm'4payload = {5"jsonrpc": "2.0",6"method": "debug_traceCall",7"params": [{"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE", "data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"}, "latest", {"tracer": "callTracer"}],8"id": "1"9}1011response = client.send(payload.to_json)12puts response13
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("debug_traceCall", [5{6"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",7"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"8},9"latest",10{ "tracer": "callTracer" },11]);12console.log(response);13})();14
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.hype-mainnet.quiknode.pro/evm");4const response = await provider.send("debug_traceCall", [5{6"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",7"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"8},9"latest",10{ "tracer": "callTracer" },11]);12console.log(response);13})();14
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "debug_traceCall",6"params": [7{8"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",9"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"10},11"latest",12{13"tracer": "callTracer"14}15],16"id": 1,17"jsonrpc": "2.0"18});1920var requestOptions = {21method: 'POST',22headers: myHeaders,23body: raw,24redirect: 'follow'25};2627fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)28.then(response => response.text())29.then(result => console.log(result))30.catch(error => console.log('error', error));31
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "debug_traceCall",6"params": [7{8"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",9"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"10},11"latest",12{13"tracer": "callTracer"14}15],16"id": 1,17"jsonrpc": "2.0"18});1920var requestOptions = {21method: 'POST',22headers: myHeaders,23body: raw,24redirect: 'follow'25};2627fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)28.then(response => response.text())29.then(result => console.log(result))30.catch(error => console.log('error', error));31
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"method": "debug_traceCall",8"params": [9{10"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",11"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"12},13"latest",14{15"tracer": "callTracer"16}17],18"id": 1,19"jsonrpc": "2.0"20})21headers = {22'Content-Type': 'application/json'23}2425response = requests.request("POST", url, headers=headers, data=payload)2627print(response.text)28
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"method": "debug_traceCall",8"params": [9{10"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",11"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"12},13"latest",14{15"tracer": "callTracer"16}17],18"id": 1,19"jsonrpc": "2.0"20})21headers = {22'Content-Type': 'application/json'23}2425response = requests.request("POST", url, headers=headers, data=payload)2627print(response.text)28
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "debug_traceCall",14"params": [15{16"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",17"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"18},19"latest",20{21"tracer": "callTracer"22}23],24"id": 1,25"jsonrpc": "2.0"26})2728response = https.request(request)29puts response.read_body30
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "debug_traceCall",14"params": [15{16"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE",17"data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"18},19"latest",20{21"tracer": "callTracer"22}23],24"id": 1,25"jsonrpc": "2.0"26})2728response = https.request(request)29puts response.read_body30
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')3params = [{"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE", "data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"}, "latest", {"tracer": "callTracer"}]4response = client.make_request('debug_traceCall', params)5print(response)6
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.hype-mainnet.quiknode.pro/evm')3params = [{"to": "0x742d35Cc6634C0532925a3b844Bc454e6595f0bE", "data": "0x70a08231000000000000000000000000742d35cc6634c0532925a3b844bc454e6595f0be"}, "latest", {"tracer": "callTracer"}]4response = client.make_request('debug_traceCall', params)5print(response)6
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free