debug_traceCall RPC Method
Parameters
object
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
string
Loading...
gasPrice
string
Loading...
value
string
Loading...
data
string
Loading...
blockReference
string
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
callTracer
string
Loading...
prestateTracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...
Returns
result
Loading...
failed
Loading...
gas
Loading...
returnValue
Loading...
structLogs
Loading...
pc
Loading...
op
Loading...
gas
Loading...
gasCost
Loading...
depth
Loading...
error
Loading...
stack
Loading...
memory
Loading...
storage
Loading...
refund
Loading...
Request
1curl -X POST "https://docs-demo.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"10},11"latest",12null13],14"id": 115}'
1curl -X POST "https://docs-demo.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "debug_traceCall",6"params": [7{8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"10},11"latest",12null13],14"id": 115}'
1import { ethers } from "ethers";23async function main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.matic.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7"to": "0x6b175474e89094c44da98b954eedeac495271d0f",8"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"9},10"latest",11null12]);13console.log(response);14}1516main();
1import { ethers } from "ethers";23async function main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.matic.quiknode.pro/");5const response = await provider.send("debug_traceCall", [6{7"to": "0x6b175474e89094c44da98b954eedeac495271d0f",8"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"9},10"latest",11null12]);13console.log(response);14}1516main();
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.matic.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",None])4print(response)
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.matic.quiknode.pro/'))3response = w3.provider.make_request("debug_traceCall", [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",None])4print(response)
1import { createPublicClient, http } from 'viem'23async function main() {4const client = createPublicClient({5transport: http('https://docs-demo.matic.quiknode.pro/')6})78const result = await client.request({9method: 'debug_traceCall',10params: [11{12"to": "0x6b175474e89094c44da98b954eedeac495271d0f",13"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"14},15"latest",16null17]18})1920console.log(result)21}2223main()
1import { createPublicClient, http } from 'viem'23async function main() {4const client = createPublicClient({5transport: http('https://docs-demo.matic.quiknode.pro/')6})78const result = await client.request({9method: 'debug_traceCall',10params: [11{12"to": "0x6b175474e89094c44da98b954eedeac495271d0f",13"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"14},15"latest",16null17]18})1920console.log(result)21}2223main()
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.matic.quiknode.pro/",5})67core.client8.request({9method: 'debug_traceCall',10params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",null]11})12.then(res => console.log(res))
1import { Core } from '@quicknode/sdk'23const core = new Core({4endpointUrl: "https://docs-demo.matic.quiknode.pro/",5})67core.client8.request({9method: 'debug_traceCall',10params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",null]11})12.then(res => console.log(res))
1const body = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",null],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.matic.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1const body = {2jsonrpc: '2.0',3method: 'debug_traceCall',4params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",null],5id: 16}78async function main() {9const response = await fetch('https://docs-demo.matic.quiknode.pro/', {10method: 'POST',11headers: {'Content-Type': 'application/json'},12body: JSON.stringify(body)13})14const data = await response.json()15console.log(data)16}1718main()
1import requests2import json34url = "https://docs-demo.matic.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"to": "0x6b175474e89094c44da98b954eedeac495271d0f",12"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"13},14"latest",15None16],17"id": 118})19headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)
1import requests2import json34url = "https://docs-demo.matic.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "debug_traceCall",9"params": [10{11"to": "0x6b175474e89094c44da98b954eedeac495271d0f",12"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"13},14"latest",15None16],17"id": 118})19headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.matic.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",nil]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.matic.quiknode.pro/")67payload = {8jsonrpc: "2.0",9id: 1,10method: "debug_traceCall",11params: [{"to":"0x6b175474e89094c44da98b954eedeac495271d0f","data":"0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"},"latest",nil]12}1314request = Net::HTTP::Post.new(uri)15request["Content-Type"] = "application/json"16request.body = JSON.generate(payload)1718response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|19http.request(request)20end2122puts response.body
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"gas": 21000,6"failed": false,7"returnValue": "",8"structLogs": []9}10}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"gas": 21000,6"failed": false,7"returnValue": "",8"structLogs": []9}10}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free