Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Apr 03, 2026
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

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
object

An object containing detailed information about the traced transaction

from
string

The address the transaction is sent from

gas
string

The gas provided for the transaction execution

gasUsed
string

The gas used by the transaction

to
string

The address the transaction is directed to

input
string

The input data sent with the transaction

output
string

The returned data from the transaction execution

error
string

(Optional) The error message if the transaction failed

revertReason
string

(Optional) The decoded revert reason if available

calls
array

(Optional) List of internal calls triggered during the transaction

from
string

The address making the call

gas
string

The gas limit specified for the call

gasUsed
string

The gas used during the call

to
string

The address being called

input
string

The input data for the call

output
string

(Optional) The output data of the call

value
string

The value (in Wei) sent with the call

type
string

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

calls
array

(Optional) Sub-calls within this internal call

value
string

The value (in Wei) sent with this transaction

type
string

The type of the outermost call

Request
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