Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Apr 03, 2026
This RPC method is included in the Free Trial with limited usage. Upgrade your plan to get full access and higher limits. Learn more onĀ our pricing page.

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

type
string

The type of transaction, e.g., 'Call'

from
string

The address initiating the transaction

to
string

The address receiving the transaction

gas
string

The gas provided for the transaction in hexadecimal

gasUsed
string

The gas used during transaction execution in hexadecimal

value
string

The value transferred in the transaction in hexadecimal

output
string

The transaction output data in hexadecimal

input
string

The transaction input data in hexadecimal

error
string

The error message if the transaction failed

revertReason
string

The revert reason if the transaction reverted

calls
array

Nested calls made during the transaction

type
string

The type of nested call

from
string

The address initiating the nested call

to
string

The address receiving the nested call

gas
string

The gas provided for the nested call in hexadecimal

gasUsed
string

The gas used during nested call execution in hexadecimal

value
string

The value transferred in the nested call in hexadecimal

output
string

The output data of the nested call in hexadecimal

input
string

The input data of the nested call in hexadecimal

error
string

The error message if the nested call failed

revertReason
string

The revert reason if the nested call reverted

calls
array

Further nested calls within the current call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "call",
6
"from": "0x0000000000000000000000000000000000000000",
7
"to": "0x0000000000000000000000000000000000008001",
8
"gas": "0x12cf52",
9
"gasUsed": "0xcc2a2",
10
"value": "0x0",
11
"output": "0x",
12
"input": "0x574caef35edef283c23a6810fa79d29ec1d8eebb5c42acc58b8629987c6bd082a19a262d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000144b4e581f5000000000000000000000000e48bb6ff5c522d029553b4bf25698b9e1eded88b00000000000000000000000074b9ae28ec45e3fa11533c7954752597c3de3e7a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"error": null,
14
"revertReason": null,
15
"calls": [
16
{
17
"type": "call",
18
"from": "0x0000000000000000000000000000000000008001",
19
"to": "0x000000000000000000000000000000000000800b",
20
"gas": "0xf9cf1ab2",
21
"gasUsed": "0x15c",
22
"value": "0x0",
23
"output": "0x",
24
"input": "0x30e5ccbd",
25
"error": null,
26
"revertReason": null,
27
"calls": []
28
}
29
]
30
}
31
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "call",
6
"from": "0x0000000000000000000000000000000000000000",
7
"to": "0x0000000000000000000000000000000000008001",
8
"gas": "0x12cf52",
9
"gasUsed": "0xcc2a2",
10
"value": "0x0",
11
"output": "0x",
12
"input": "0x574caef35edef283c23a6810fa79d29ec1d8eebb5c42acc58b8629987c6bd082a19a262d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000144b4e581f5000000000000000000000000e48bb6ff5c522d029553b4bf25698b9e1eded88b00000000000000000000000074b9ae28ec45e3fa11533c7954752597c3de3e7a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13
"error": null,
14
"revertReason": null,
15
"calls": [
16
{
17
"type": "call",
18
"from": "0x0000000000000000000000000000000000008001",
19
"to": "0x000000000000000000000000000000000000800b",
20
"gas": "0xf9cf1ab2",
21
"gasUsed": "0x15c",
22
"value": "0x0",
23
"output": "0x",
24
"input": "0x30e5ccbd",
25
"error": null,
26
"revertReason": null,
27
"calls": []
28
}
29
]
30
}
31
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free