quai_traceTransaction
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "quai_traceTransaction",
"params": [
300000
],
"id": 1
}
'import requests
url = "https://rpc.quai.network/cyprus1/"
payload = {
"jsonrpc": "2.0",
"method": "quai_traceTransaction",
"params": [300000],
"id": 1
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', method: 'quai_traceTransaction', params: [300000], id: 1})
};
fetch('https://rpc.quai.network/cyprus1/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rpc.quai.network/cyprus1/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'method' => 'quai_traceTransaction',
'params' => [
300000
],
'id' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rpc.quai.network/cyprus1/"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rpc.quai.network/cyprus1/")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.quai.network/cyprus1/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"result": {
"type": "CALL",
"from": "0x1aa538ebd756c761681e3dd2489ccdbb3edabac2",
"to": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"value": "0x69e10de76676d08000000",
"gas": "0x137718",
"gasUsed": "0x13c5a",
"input": "0x0e8b2cab00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001856f346b67615e9acb4dc3da6ebceb2bc2f89400000000000000000000000001a2c10fbaef57294951c415f623171fbd65473d00000000000000000000000000000000000000000000000000000000000000c60000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000661ec7510000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000041e946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d9991c00000000000000000000000000000000000000000000000000000000000000",
"output": "0x",
"time": "28.572303ms",
"calls": [
{
"type": "STATICCALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x0000000000000000000000000000000000000001",
"input": "0xd51324da5ca6c8331884113967061a64a5cb52c4b5bdb561bf2e2f3466502c28000000000000000000000000000000000000000000000000000000000000001ce946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d999",
"output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f"
},
{
"type": "STATICCALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
"gas": "0x12a285",
"gasUsed": "0xa52",
"input": "0x6352211e0000000000000000000000000000000000000000000000000000000000000c60",
"output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f"
},
{
"type": "CALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x15c1b1d51fa91e881a39981d75339dcb4fafe89f",
"value": "0x67c2f4069cbc1e4000000",
"input": "0x",
"output": "0x"
},
{
"type": "CALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
"value": "0x0",
"gas": "0x12518c",
"gasUsed": "0x53bd",
"input": "0x42842e0e00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001aa538ebd756c761681e3dd2489ccdbb3edabac20000000000000000000000000000000000000000000000000000000000000c60",
"output": "0x"
}
]
},
"id": 1
}Debug
traceTransaction
Returns the raw trace for a transaction.
POST
/
quai_traceTransaction
curl --request POST \
--url https://rpc.quai.network/cyprus1/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "quai_traceTransaction",
"params": [
300000
],
"id": 1
}
'import requests
url = "https://rpc.quai.network/cyprus1/"
payload = {
"jsonrpc": "2.0",
"method": "quai_traceTransaction",
"params": [300000],
"id": 1
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', method: 'quai_traceTransaction', params: [300000], id: 1})
};
fetch('https://rpc.quai.network/cyprus1/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rpc.quai.network/cyprus1/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'method' => 'quai_traceTransaction',
'params' => [
300000
],
'id' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rpc.quai.network/cyprus1/"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rpc.quai.network/cyprus1/")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rpc.quai.network/cyprus1/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"quai_traceTransaction\",\n \"params\": [\n 300000\n ],\n \"id\": 1\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"result": {
"type": "CALL",
"from": "0x1aa538ebd756c761681e3dd2489ccdbb3edabac2",
"to": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"value": "0x69e10de76676d08000000",
"gas": "0x137718",
"gasUsed": "0x13c5a",
"input": "0x0e8b2cab00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001856f346b67615e9acb4dc3da6ebceb2bc2f89400000000000000000000000001a2c10fbaef57294951c415f623171fbd65473d00000000000000000000000000000000000000000000000000000000000000c60000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000661ec7510000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000041e946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d9991c00000000000000000000000000000000000000000000000000000000000000",
"output": "0x",
"time": "28.572303ms",
"calls": [
{
"type": "STATICCALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x0000000000000000000000000000000000000001",
"input": "0xd51324da5ca6c8331884113967061a64a5cb52c4b5bdb561bf2e2f3466502c28000000000000000000000000000000000000000000000000000000000000001ce946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d999",
"output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f"
},
{
"type": "STATICCALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
"gas": "0x12a285",
"gasUsed": "0xa52",
"input": "0x6352211e0000000000000000000000000000000000000000000000000000000000000c60",
"output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f"
},
{
"type": "CALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x15c1b1d51fa91e881a39981d75339dcb4fafe89f",
"value": "0x67c2f4069cbc1e4000000",
"input": "0x",
"output": "0x"
},
{
"type": "CALL",
"from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929",
"to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
"value": "0x0",
"gas": "0x12518c",
"gasUsed": "0x53bd",
"input": "0x42842e0e00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001aa538ebd756c761681e3dd2489ccdbb3edabac20000000000000000000000000000000000000000000000000000000000000c60",
"output": "0x"
}
]
},
"id": 1
}Body
application/json
Available options:
2.0 Example:
"2.0"
The name of the method to be invoked.
Available options:
quai_traceTransaction Example:
"quai_traceTransaction"
The transaction hash and tracer configuration.
Required array length:
1 - 2 elementsExample:
[300000]
A unique identifier for the request.
Example:
1
Response
200 - application/json
Successful response
Example:
"2.0"
The raw transaction trace.
Example:
{ "type": "CALL", "from": "0x1aa538ebd756c761681e3dd2489ccdbb3edabac2", "to": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929", "value": "0x69e10de76676d08000000", "gas": "0x137718", "gasUsed": "0x13c5a", "input": "0x0e8b2cab00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001856f346b67615e9acb4dc3da6ebceb2bc2f89400000000000000000000000001a2c10fbaef57294951c415f623171fbd65473d00000000000000000000000000000000000000000000000000000000000000c60000000000000000000000000000000000000000000069e10de76676d0800000000000000000000000000000000000000000000000000000000000000661ec7510000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000041e946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d9991c00000000000000000000000000000000000000000000000000000000000000", "output": "0x", "time": "28.572303ms", "calls": [ { "type": "STATICCALL", "from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929", "to": "0x0000000000000000000000000000000000000001", "input": "0xd51324da5ca6c8331884113967061a64a5cb52c4b5bdb561bf2e2f3466502c28000000000000000000000000000000000000000000000000000000000000001ce946bc125bfa3784631c0694c0ea0d901a76a9627f61cc84843fe6acc07ad77b64ce4df61f3479a9289d2d12d40493c277cffca30dd9cd6b928be7bbe725d999", "output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f" }, { "type": "STATICCALL", "from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929", "to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940", "gas": "0x12a285", "gasUsed": "0xa52", "input": "0x6352211e0000000000000000000000000000000000000000000000000000000000000c60", "output": "0x00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f" }, { "type": "CALL", "from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929", "to": "0x15c1b1d51fa91e881a39981d75339dcb4fafe89f", "value": "0x67c2f4069cbc1e4000000", "input": "0x", "output": "0x" }, { "type": "CALL", "from": "0x0f3d34e094d198c7a4c3db35ba1351fdae0bc929", "to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940", "value": "0x0", "gas": "0x12518c", "gasUsed": "0x53bd", "input": "0x42842e0e00000000000000000000000015c1b1d51fa91e881a39981d75339dcb4fafe89f0000000000000000000000001aa538ebd756c761681e3dd2489ccdbb3edabac20000000000000000000000000000000000000000000000000000000000000c60", "output": "0x" } ] }
Example:
1
Was this page helpful?
⌘I
