Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Mar 27, 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 integer of the gas provided for the transaction execution

gasUsed
string

The integer of the gas used

to
string

The address the transaction is directed to

input
string

The data given at the time of input

output
string

(Optional) The output data of the call

calls
array

(Optional) An array containing information about internal calls made during the transaction

from
string

The address making the call

gas
string

The gas limit specified for the call

gasUsed
string

The amount of 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 or STATICCALL)

calls
array

The sub-calls associated with the call

value
string

The integer of the value sent with this transaction

type
string

The type of the call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
8
"gas": "0x2e97c",
9
"gasUsed": "0x2a78",
10
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
11
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
12
"type": "DELEGATECALL",
13
"value": "0x0"
14
}
15
],
16
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
17
"gas": "0x35f30",
18
"gasUsed": "0x947d",
19
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
20
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
21
"type": "CALL",
22
"value": "0x0"
23
}
24
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"calls": [
6
{
7
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
8
"gas": "0x2e97c",
9
"gasUsed": "0x2a78",
10
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
11
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
12
"type": "DELEGATECALL",
13
"value": "0x0"
14
}
15
],
16
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
17
"gas": "0x35f30",
18
"gasUsed": "0x947d",
19
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
20
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
21
"type": "CALL",
22
"value": "0x0"
23
}
24
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free