Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Jan 21, 2026

Parameters

transactionHash
string

The transaction hash that needs to be traced, encoded in hexadecimal format

object
object
REQUIRED

The tracer object with the following fields:

tracer
string

The type of tracer. It could be callTracer or prestateTracer

callTracer
string

The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction

prestateTracer
string

The prestateTracer replays the transaction and tracks every part of state that occured during the transaction

tracerConfig
object

The object to specify the configurations of the tracer

onlyTopCall
boolean

When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame

timeout
string

A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.

Returns

result

An object containing detailed information about the traced transaction

beforeEVMTransfers

An array representing EVM transfers that occurred before the execution of the transaction

purpose

(Optional) The purpose of the EVM transfer

from

(Optional) The Ethereum address initiating the transfer

to

(Optional) The Ethereum address receiving the transfer

value

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

afterEVMTransfers

An array representing EVM transfers that occurred after the execution of the transaction

purpose

(Optional) The purpose of the EVM transfer

from

(Optional) The Ethereum address initiating the transfer

to

(Optional) The Ethereum address receiving the transfer

value

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

from

The address the transaction is sent from

gas

The integer of the gas provided for the transaction execution

gasUsed

The integer of the gas used

to

The address the transaction is directed to

input

The data given at the time of input

calls

An array containing information about internal calls made during the transaction

from

The address making the call

gas

The gas limit specified for the call

gasUsed

The amount of gas used during the call

to

The address being called

input

The input data for the call

output

The output data of the call

value

The value (in Wei) sent with the call

type

The type of call (e.g., CALL or STATICCALL)

calls

The sub-calls associated with the call

value

The integer of the value sent with this transaction

type

The type of the call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"afterEVMTransfers": [
6
{
7
"from": null,
8
"purpose": "gasRefund",
9
"to": "0x2D0F80376Cb0eCEe1cCD1939F605DEF0B3E052aA",
10
"value": "0x15e83be1cdd00"
11
},
12
{
13
"from": null,
14
"purpose": "feeCollection",
15
"to": "0xdff90519a9DE6ad469D4f9839a9220C5D340B792",
16
"value": "0xd2962a80a00"
17
},
18
{
19
"from": null,
20
"purpose": "feeCollection",
21
"to": "0xa4B00000000000000000000000000000000000F6",
22
"value": "0x1f21241900"
23
}
24
],
25
"beforeEVMTransfers": [
26
{
27
"from": "0x2D0F80376Cb0eCEe1cCD1939F605DEF0B3E052aA",
28
"purpose": "feePayment",
29
"to": null,
30
"value": "0x16bcc41e90000"
31
}
32
],
33
"calls": [
34
{
35
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
36
"gas": "0x3ba5b3",
37
"gasUsed": "0x9c8",
38
"input": "0x0902f1ac",
39
"output": "0x0000000000000000000000000000000000000000000000045aeeabe1ae7e139c00000000000000000000000000000000000000000000000000000016c717631e0000000000000000000000000000000000000000000000000000000063a5b8b6",
40
"to": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
41
"type": "STATICCALL"
42
},
43
{
44
"calls": [
45
{
46
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
47
"gas": "0x3a694f",
48
"gasUsed": "0x73ea",
49
"input": "0xd0e30db0",
50
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
51
"type": "DELEGATECALL",
52
"value": "0x353ff1721f800"
53
}
54
],
55
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
56
"gas": "0x3b7314",
57
"gasUsed": "0x907b",
58
"input": "0xd0e30db0",
59
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
60
"type": "CALL",
61
"value": "0x353ff1721f800"
62
},
63
{
64
"calls": [
65
{
66
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
67
"gas": "0x39f1af",
68
"gasUsed": "0x203e",
69
"input": "0xa9059cbb000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743000000000000000000000000000000000000000000000000000353ff1721f800",
70
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
71
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
72
"type": "DELEGATECALL",
73
"value": "0x0"
74
}
75
],
76
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
77
"gas": "0x3ae030",
78
"gasUsed": "0x2374",
79
"input": "0xa9059cbb000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743000000000000000000000000000000000000000000000000000353ff1721f800",
80
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
81
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
82
"type": "CALL",
83
"value": "0x0"
84
},
85
{
86
"calls": [
87
{
88
"calls": [
89
{
90
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
91
"gas": "0x389d5c",
92
"gasUsed": "0x904",
93
"input": "0x5c60da1b",
94
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
95
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
96
"type": "STATICCALL"
97
},
98
{
99
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
100
"gas": "0x3889f8",
101
"gasUsed": "0x7587",
102
"input": "0xa9059cbb0000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000000115a84",
103
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
104
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
105
"type": "DELEGATECALL",
106
"value": "0x0"
107
}
108
],
109
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
110
"gas": "0x39970c",
111
"gasUsed": "0x9d06",
112
"input": "0xa9059cbb0000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000000115a84",
113
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
114
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
115
"type": "CALL",
116
"value": "0x0"
117
},
118
{
119
"calls": [
120
{
121
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
122
"gas": "0x38133b",
123
"gasUsed": "0x229",
124
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
125
"output": "0x0000000000000000000000000000000000000000000000045af1ffe0c5a00b9c",
126
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
127
"type": "DELEGATECALL",
128
"value": "0x0"
129
}
130
],
131
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
132
"gas": "0x38fa21",
133
"gasUsed": "0x55c",
134
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
135
"output": "0x0000000000000000000000000000000000000000000000045af1ffe0c5a00b9c",
136
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
137
"type": "STATICCALL"
138
},
139
{
140
"calls": [
141
{
142
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
143
"gas": "0x380d72",
144
"gasUsed": "0x134",
145
"input": "0x5c60da1b",
146
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
147
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
148
"type": "STATICCALL"
149
},
150
{
151
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
152
"gas": "0x380b5e",
153
"gasUsed": "0x1d1",
154
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
155
"output": "0x00000000000000000000000000000000000000000000000000000016c706089a",
156
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
157
"type": "DELEGATECALL",
158
"value": "0x0"
159
}
160
],
161
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
162
"gas": "0x38f345",
163
"gasUsed": "0x625",
164
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
165
"output": "0x00000000000000000000000000000000000000000000000000000016c706089a",
166
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
167
"type": "STATICCALL"
168
}
169
],
170
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
171
"gas": "0x3ab56e",
172
"gasUsed": "0x12c64",
173
"input": "0x022c0d9f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000115a840000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
174
"to": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
175
"type": "CALL",
176
"value": "0x0"
177
}
178
],
179
"from": "0x2d0f80376cb0ecee1ccd1939f605def0b3e052aa",
180
"gas": "0x3d0900",
181
"gasUsed": "0x23a83",
182
"input": "0x7ff36ab50000000000000000000000000000000000000000000000000000000000112e1700000000000000000000000000000000000000000000000000000000000000800000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000063a5dfdd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000750ba8b76187092b0d1e87e28daaf484d1b5273b",
183
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000353ff1721f8000000000000000000000000000000000000000000000000000000000000115a84",
184
"to": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
185
"type": "CALL",
186
"value": "0x353ff1721f800"
187
}
188
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"afterEVMTransfers": [
6
{
7
"from": null,
8
"purpose": "gasRefund",
9
"to": "0x2D0F80376Cb0eCEe1cCD1939F605DEF0B3E052aA",
10
"value": "0x15e83be1cdd00"
11
},
12
{
13
"from": null,
14
"purpose": "feeCollection",
15
"to": "0xdff90519a9DE6ad469D4f9839a9220C5D340B792",
16
"value": "0xd2962a80a00"
17
},
18
{
19
"from": null,
20
"purpose": "feeCollection",
21
"to": "0xa4B00000000000000000000000000000000000F6",
22
"value": "0x1f21241900"
23
}
24
],
25
"beforeEVMTransfers": [
26
{
27
"from": "0x2D0F80376Cb0eCEe1cCD1939F605DEF0B3E052aA",
28
"purpose": "feePayment",
29
"to": null,
30
"value": "0x16bcc41e90000"
31
}
32
],
33
"calls": [
34
{
35
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
36
"gas": "0x3ba5b3",
37
"gasUsed": "0x9c8",
38
"input": "0x0902f1ac",
39
"output": "0x0000000000000000000000000000000000000000000000045aeeabe1ae7e139c00000000000000000000000000000000000000000000000000000016c717631e0000000000000000000000000000000000000000000000000000000063a5b8b6",
40
"to": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
41
"type": "STATICCALL"
42
},
43
{
44
"calls": [
45
{
46
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
47
"gas": "0x3a694f",
48
"gasUsed": "0x73ea",
49
"input": "0xd0e30db0",
50
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
51
"type": "DELEGATECALL",
52
"value": "0x353ff1721f800"
53
}
54
],
55
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
56
"gas": "0x3b7314",
57
"gasUsed": "0x907b",
58
"input": "0xd0e30db0",
59
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
60
"type": "CALL",
61
"value": "0x353ff1721f800"
62
},
63
{
64
"calls": [
65
{
66
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
67
"gas": "0x39f1af",
68
"gasUsed": "0x203e",
69
"input": "0xa9059cbb000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743000000000000000000000000000000000000000000000000000353ff1721f800",
70
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
71
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
72
"type": "DELEGATECALL",
73
"value": "0x0"
74
}
75
],
76
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
77
"gas": "0x3ae030",
78
"gasUsed": "0x2374",
79
"input": "0xa9059cbb000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743000000000000000000000000000000000000000000000000000353ff1721f800",
80
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
81
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
82
"type": "CALL",
83
"value": "0x0"
84
},
85
{
86
"calls": [
87
{
88
"calls": [
89
{
90
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
91
"gas": "0x389d5c",
92
"gasUsed": "0x904",
93
"input": "0x5c60da1b",
94
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
95
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
96
"type": "STATICCALL"
97
},
98
{
99
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
100
"gas": "0x3889f8",
101
"gasUsed": "0x7587",
102
"input": "0xa9059cbb0000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000000115a84",
103
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
104
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
105
"type": "DELEGATECALL",
106
"value": "0x0"
107
}
108
],
109
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
110
"gas": "0x39970c",
111
"gasUsed": "0x9d06",
112
"input": "0xa9059cbb0000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000000115a84",
113
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
114
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
115
"type": "CALL",
116
"value": "0x0"
117
},
118
{
119
"calls": [
120
{
121
"from": "0x722e8bdd2ce80a4422e880164f2079488e115365",
122
"gas": "0x38133b",
123
"gasUsed": "0x229",
124
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
125
"output": "0x0000000000000000000000000000000000000000000000045af1ffe0c5a00b9c",
126
"to": "0x8ff39ce873ced3b83f4cb8ffae55dcfaeaf0a296",
127
"type": "DELEGATECALL",
128
"value": "0x0"
129
}
130
],
131
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
132
"gas": "0x38fa21",
133
"gasUsed": "0x55c",
134
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
135
"output": "0x0000000000000000000000000000000000000000000000045af1ffe0c5a00b9c",
136
"to": "0x722e8bdd2ce80a4422e880164f2079488e115365",
137
"type": "STATICCALL"
138
},
139
{
140
"calls": [
141
{
142
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
143
"gas": "0x380d72",
144
"gasUsed": "0x134",
145
"input": "0x5c60da1b",
146
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
147
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
148
"type": "STATICCALL"
149
},
150
{
151
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
152
"gas": "0x380b5e",
153
"gasUsed": "0x1d1",
154
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
155
"output": "0x00000000000000000000000000000000000000000000000000000016c706089a",
156
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
157
"type": "DELEGATECALL",
158
"value": "0x0"
159
}
160
],
161
"from": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
162
"gas": "0x38f345",
163
"gasUsed": "0x625",
164
"input": "0x70a08231000000000000000000000000dba61558a49c0a836a4106502cfbe5870dad1743",
165
"output": "0x00000000000000000000000000000000000000000000000000000016c706089a",
166
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
167
"type": "STATICCALL"
168
}
169
],
170
"from": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
171
"gas": "0x3ab56e",
172
"gasUsed": "0x12c64",
173
"input": "0x022c0d9f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000115a840000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
174
"to": "0xdba61558a49c0a836a4106502cfbe5870dad1743",
175
"type": "CALL",
176
"value": "0x0"
177
}
178
],
179
"from": "0x2d0f80376cb0ecee1ccd1939f605def0b3e052aa",
180
"gas": "0x3d0900",
181
"gasUsed": "0x23a83",
182
"input": "0x7ff36ab50000000000000000000000000000000000000000000000000000000000112e1700000000000000000000000000000000000000000000000000000000000000800000000000000000000000002d0f80376cb0ecee1ccd1939f605def0b3e052aa0000000000000000000000000000000000000000000000000000000063a5dfdd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000750ba8b76187092b0d1e87e28daaf484d1b5273b",
183
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000353ff1721f8000000000000000000000000000000000000000000000000000000000000115a84",
184
"to": "0xee01c0cd76354c383b8c7b4e65ea88d00b06f36f",
185
"type": "CALL",
186
"value": "0x353ff1721f800"
187
}
188
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free