Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction.

Updated on
Oct 15, 2026

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 occurred 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

object
object

A call trace object

beforeEVMTransfers
array

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

purpose
string

(Optional) The purpose of the EVM transfer

from
string

(Optional) The Ethereum address initiating the transfer

to
string

(Optional) The Ethereum address receiving the transfer

value
string

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

afterEVMTransfers
array

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

purpose
string

(Optional) The purpose of the EVM transfer

from
string

(Optional) The Ethereum address initiating the transfer

to
string

(Optional) The Ethereum address receiving the transfer

value
string

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

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

calls
array

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)

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
"beforeEVMTransfers": [
6
{
7
"purpose": "feePayment",
8
"from": "0xa7E0C5E2339b30EF3E6d0478351fc6d225AbC30A",
9
"to": null,
10
"value": "0x1e8f1c10800"
11
}
12
],
13
"afterEVMTransfers": [
14
{
15
"purpose": "gasRefund",
16
"from": null,
17
"to": "0xa7E0C5E2339b30EF3E6d0478351fc6d225AbC30A",
18
"value": "0x0"
19
},
20
{
21
"purpose": "feeCollection",
22
"from": null,
23
"to": "0x252431E84D5E22435A0c833C2220770c52F59633",
24
"value": "0x1e8f1c10800"
25
},
26
{
27
"purpose": "feeCollection",
28
"from": null,
29
"to": "0xa4B00000000000000000000000000000000000F6",
30
"value": "0x0"
31
}
32
],
33
"from": "0xa7e0c5e2339b30ef3e6d0478351fc6d225abc30a",
34
"gas": "0x5208",
35
"gasUsed": "0x5208",
36
"to": "0xc64c78f7199b5477973bf68c010c932c2d663c11",
37
"input": "0x",
38
"value": "0x8ae8f2677c6",
39
"type": "CALL"
40
}
41
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"beforeEVMTransfers": [
6
{
7
"purpose": "feePayment",
8
"from": "0xa7E0C5E2339b30EF3E6d0478351fc6d225AbC30A",
9
"to": null,
10
"value": "0x1e8f1c10800"
11
}
12
],
13
"afterEVMTransfers": [
14
{
15
"purpose": "gasRefund",
16
"from": null,
17
"to": "0xa7E0C5E2339b30EF3E6d0478351fc6d225AbC30A",
18
"value": "0x0"
19
},
20
{
21
"purpose": "feeCollection",
22
"from": null,
23
"to": "0x252431E84D5E22435A0c833C2220770c52F59633",
24
"value": "0x1e8f1c10800"
25
},
26
{
27
"purpose": "feeCollection",
28
"from": null,
29
"to": "0xa4B00000000000000000000000000000000000F6",
30
"value": "0x0"
31
}
32
],
33
"from": "0xa7e0c5e2339b30ef3e6d0478351fc6d225abc30a",
34
"gas": "0x5208",
35
"gasUsed": "0x5208",
36
"to": "0xc64c78f7199b5477973bf68c010c932c2d663c11",
37
"input": "0x",
38
"value": "0x8ae8f2677c6",
39
"type": "CALL"
40
}
41
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free