Skip to main content

debug_traceTransaction RPC Method

Loading...

Updated on
Apr 03, 2026

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...
output
string
Loading...
error
string
Loading...
revertReason
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
1
curl -X POST "https://docs-demo.sonic-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceTransaction",
6
"params": [
7
"0x0a0e5de068f7afd79c4fd47670a90a44ea461ff77f5f415b80ef5225fcfb9b30",
8
{
9
"tracer": "callTracer",
10
"tracerConfig": {
11
"onlyTopCall": false
12
}
13
}
14
],
15
"id": 1
16
}'
1
curl -X POST "https://docs-demo.sonic-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceTransaction",
6
"params": [
7
"0x0a0e5de068f7afd79c4fd47670a90a44ea461ff77f5f415b80ef5225fcfb9b30",
8
{
9
"tracer": "callTracer",
10
"tracerConfig": {
11
"onlyTopCall": false
12
}
13
}
14
],
15
"id": 1
16
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"calls": [
8
{
9
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
10
"gas": "0x278fa",
11
"gasUsed": "0x3260",
12
"input": "0xa9059cbb000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d0000000000000000000000000000000000000000000000000000000000055fc5",
13
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
14
"to": "0x0555e30da8f98308edb960aa94c0db47230d2b9c",
15
"type": "CALL",
16
"value": "0x0"
17
},
18
{
19
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
20
"gas": "0x23b78",
21
"gasUsed": "0xa16",
22
"input": "0x70a08231000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c",
23
"output": "0x0000000000000000000000000000000000000000000091abb211f7c19136d067",
24
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
25
"type": "STATICCALL"
26
},
27
{
28
"calls": [
29
{
30
"from": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
31
"gas": "0x217fa",
32
"gasUsed": "0x341b",
33
"input": "0x23b872dd000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c00000000000000000000000000000000000000000000004276f01ab382780000",
34
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
35
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
36
"type": "CALL",
37
"value": "0x0"
38
}
39
],
40
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
41
"gas": "0x22ecc",
42
"gasUsed": "0x4469",
43
"input": "0xfa461e3300000000000000000000000000000000000000000000004276f01ab382780000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa03b000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000002b039e2fb66102314ce7b64ce5ce3e5183bc94ad380000320555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000000000000000000000",
44
"to": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
45
"type": "CALL",
46
"value": "0x0"
47
},
48
{
49
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
50
"gas": "0x1e9c9",
51
"gasUsed": "0x246",
52
"input": "0x70a08231000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c",
53
"output": "0x0000000000000000000000000000000000000000000091ee2902127513aed067",
54
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
55
"type": "STATICCALL"
56
}
57
],
58
"from": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
59
"gas": "0x3393a",
60
"gasUsed": "0x157ac",
61
"input": "0x128acb08000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000004276f01ab38278000000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000002b039e2fb66102314ce7b64ce5ce3e5183bc94ad380000320555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000000000000000000000",
62
"output": "0x00000000000000000000000000000000000000000000004276f01ab382780000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa03b",
63
"to": "0xa1538e790ccdd639755602857f582a39ed7f650c",
64
"type": "CALL",
65
"value": "0x0"
66
}
67
],
68
"error": "execution reverted",
69
"from": "0xb3c506d60d45abb917ee10a947749a098b497d3d",
70
"gas": "0x3b86e",
71
"gasUsed": "0x1fcf8",
72
"input": "0xa026383e000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d00000000000000000000000000000000000000000000000000000000688376bf00000000000000000000000000000000000000000000004276f01ab3827800000000000000000000000000000000000000000000000000000000000000055fc90000000000000000000000000000000000000000000000000000000000000000",
73
"output": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000013546f6f206c6974746c6520726563656976656400000000000000000000000000",
74
"revertReason": "Too little received",
75
"to": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
76
"type": "CALL",
77
"value": "0x0"
78
}
79
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"calls": [
8
{
9
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
10
"gas": "0x278fa",
11
"gasUsed": "0x3260",
12
"input": "0xa9059cbb000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d0000000000000000000000000000000000000000000000000000000000055fc5",
13
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
14
"to": "0x0555e30da8f98308edb960aa94c0db47230d2b9c",
15
"type": "CALL",
16
"value": "0x0"
17
},
18
{
19
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
20
"gas": "0x23b78",
21
"gasUsed": "0xa16",
22
"input": "0x70a08231000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c",
23
"output": "0x0000000000000000000000000000000000000000000091abb211f7c19136d067",
24
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
25
"type": "STATICCALL"
26
},
27
{
28
"calls": [
29
{
30
"from": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
31
"gas": "0x217fa",
32
"gasUsed": "0x341b",
33
"input": "0x23b872dd000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c00000000000000000000000000000000000000000000004276f01ab382780000",
34
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
35
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
36
"type": "CALL",
37
"value": "0x0"
38
}
39
],
40
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
41
"gas": "0x22ecc",
42
"gasUsed": "0x4469",
43
"input": "0xfa461e3300000000000000000000000000000000000000000000004276f01ab382780000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa03b000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000002b039e2fb66102314ce7b64ce5ce3e5183bc94ad380000320555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000000000000000000000",
44
"to": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
45
"type": "CALL",
46
"value": "0x0"
47
},
48
{
49
"from": "0xa1538e790ccdd639755602857f582a39ed7f650c",
50
"gas": "0x1e9c9",
51
"gasUsed": "0x246",
52
"input": "0x70a08231000000000000000000000000a1538e790ccdd639755602857f582a39ed7f650c",
53
"output": "0x0000000000000000000000000000000000000000000091ee2902127513aed067",
54
"to": "0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38",
55
"type": "STATICCALL"
56
}
57
],
58
"from": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
59
"gas": "0x3393a",
60
"gasUsed": "0x157ac",
61
"input": "0x128acb08000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000004276f01ab38278000000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d000000000000000000000000000000000000000000000000000000000000002b039e2fb66102314ce7b64ce5ce3e5183bc94ad380000320555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000000000000000000000",
62
"output": "0x00000000000000000000000000000000000000000000004276f01ab382780000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaa03b",
63
"to": "0xa1538e790ccdd639755602857f582a39ed7f650c",
64
"type": "CALL",
65
"value": "0x0"
66
}
67
],
68
"error": "execution reverted",
69
"from": "0xb3c506d60d45abb917ee10a947749a098b497d3d",
70
"gas": "0x3b86e",
71
"gasUsed": "0x1fcf8",
72
"input": "0xa026383e000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c0000000000000000000000000000000000000000000000000000000000000032000000000000000000000000b3c506d60d45abb917ee10a947749a098b497d3d00000000000000000000000000000000000000000000000000000000688376bf00000000000000000000000000000000000000000000004276f01ab3827800000000000000000000000000000000000000000000000000000000000000055fc90000000000000000000000000000000000000000000000000000000000000000",
73
"output": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000013546f6f206c6974746c6520726563656976656400000000000000000000000000",
74
"revertReason": "Too little received",
75
"to": "0x5543c6176feb9b4b179078205d7c29eea2e2d695",
76
"type": "CALL",
77
"value": "0x0"
78
}
79
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free