debug_traceTransaction RPC Method
This RPC method requires the Build plan or higher. Upgrade from your Free Trial to access this API Method. See our pricing for more information.
Parameters
transactionHash
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...
calls
array
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
output
string
Loading...
value
string
Loading...
type
string
Loading...
calls
array
Loading...
value
string
Loading...
type
string
Loading...
Request
1curl https://docs-demo.soneium-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"debug_traceTransaction","params":["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}'5
1curl https://docs-demo.soneium-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"debug_traceTransaction","params":["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}'5
1require 'eth'23client = Eth::Client.create 'https://docs-demo.soneium-mainnet.quiknode.pro/'4payload = {5"jsonrpc": "2.0",6"method": "debug_traceTransaction",7"params": ["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600", {"tracer": "callTracer"}],8"id": "1"9}1011response = client.send(payload.to_json)12puts response13
1require 'eth'23client = Eth::Client.create 'https://docs-demo.soneium-mainnet.quiknode.pro/'4payload = {5"jsonrpc": "2.0",6"method": "debug_traceTransaction",7"params": ["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600", {"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.soneium-mainnet.quiknode.pro/");4const response = await provider.send("debug_traceTransaction", [5"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",6{ "tracer": "callTracer" },7]);8console.log(response);9})();10
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.soneium-mainnet.quiknode.pro/");4const response = await provider.send("debug_traceTransaction", [5"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",6{ "tracer": "callTracer" },7]);8console.log(response);9})();10
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "debug_traceTransaction",6"params": [7"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",8{9"tracer": "callTracer"10}11],12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17method: 'POST',18headers: myHeaders,19body: raw,20redirect: 'follow'21};2223fetch("https://docs-demo.soneium-mainnet.quiknode.pro/", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "debug_traceTransaction",6"params": [7"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",8{9"tracer": "callTracer"10}11],12"id": 1,13"jsonrpc": "2.0"14});1516var requestOptions = {17method: 'POST',18headers: myHeaders,19body: raw,20redirect: 'follow'21};2223fetch("https://docs-demo.soneium-mainnet.quiknode.pro/", requestOptions)24.then(response => response.text())25.then(result => console.log(result))26.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.soneium-mainnet.quiknode.pro/"56payload = json.dumps({7"method": "debug_traceTransaction",8"params": [9"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",10{11"tracer": "callTracer"12}13],14"id": 1,15"jsonrpc": "2.0"16})17headers = {18'Content-Type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1import requests2import json34url = "https://docs-demo.soneium-mainnet.quiknode.pro/"56payload = json.dumps({7"method": "debug_traceTransaction",8"params": [9"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",10{11"tracer": "callTracer"12}13],14"id": 1,15"jsonrpc": "2.0"16})17headers = {18'Content-Type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.soneium-mainnet.quiknode.pro/")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_traceTransaction",14"params": [15"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",16{17"tracer": "callTracer"18}19],20"id": 1,21"jsonrpc": "2.0"22})2324response = https.request(request)25puts response.read_body26
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.soneium-mainnet.quiknode.pro/")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_traceTransaction",14"params": [15"0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",16{17"tracer": "callTracer"18}19],20"id": 1,21"jsonrpc": "2.0"22})2324response = https.request(request)25puts response.read_body26
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.soneium-mainnet.quiknode.pro/')3params = ["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",{ "tracer": "callTracer" }]4response = client.make_request('debug_traceTransaction', params)5print(response)6
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.soneium-mainnet.quiknode.pro/')3params = ["0x374fe005de699d6385ae999a7c54bb48018cf85578e62c86a9833ba4cc221600",{ "tracer": "callTracer" }]4response = client.make_request('debug_traceTransaction', params)5print(response)6
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free