Skip to main content

trace_rawTransaction RPC Method

Traces a call to eth_sendRawTransaction without making the call, returning the traces(Supported on Erigon).

Updated on
Mar 20, 2026

Parameters

data

The raw transaction data/string

array
array
REQUIRED

The type of trace, which can be one of the following:

vmTrace
string

To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcalls

trace
string

To get the basic trace of the given transaction

stateDiff
string

To get information on altered Ethereum state due to execution of the given transaction

Returns

array
array

The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):

output
object

The data which is returned as an output encoded in hexadecimal format

stateDiff
object

It returns the information on altered Ethereum state due to execution of the given transaction

trace
object

It is used to retrieve the basic trace of the given information

action

The action to be performed on the receiver id

from

The address of the sender

callType

The type of method such as call, delegatecall

gas

The gas provided by the sender, encoded as hexadecimal

input

The data sent along with the transaction

to

The address of the receiver

value

The integer of the value sent with this transaction, encoded as hexadecimal

result

The integer of the gas price used encoded as hexadecimal

gasUsed

The total used gas by all transactions in this block encoded as hexadecimal

output

The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes

subtraces

The traces of contract calls made by the transaction

traceAddress

The list of addresses where the call was executed, the address of the parents, and the order of the current sub call

type

The value of the method such as call or create

vmTrace
object

It is used to get a full trace of the virtual machine's state during the execution of the given transaction, including for any sub-calls

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [
9
{
10
"action": {
11
"from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",
12
"callType": "call",
13
"gas": "0x7a120",
14
"input": "0xa9059cbb000000000000000000000000d46e8dd67c5d32be8058bb8eb970870f0724456700000000000000000000000000000000000000000000000000de0b6b3a7640000",
15
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
16
"value": "0x0"
17
},
18
"result": {
19
"gasUsed": "0x51c8",
20
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
21
},
22
"subtraces": 1,
23
"traceAddress": [],
24
"type": "call"
25
},
26
{
27
"action": {
28
"from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
29
"callType": "call",
30
"gas": "0x73e5f",
31
"input": "0x",
32
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
33
"value": "0x0"
34
},
35
"result": {
36
"gasUsed": "0x0",
37
"output": "0x"
38
},
39
"subtraces": 0,
40
"traceAddress": [
41
0
42
],
43
"type": "call"
44
}
45
],
46
"vmTrace": {
47
"code": "0x608060405260043610610087577c01000000000000000000000000000000000000000000000000000000006000350463095ea7b3811461008c57806318160ddd146100d...",
48
"ops": [
49
{
50
"cost": 3,
51
"ex": {
52
"mem": null,
53
"push": [
54
"0x60"
55
],
56
"store": null,
57
"used": 16756199
58
},
59
"pc": 0,
60
"sub": null
61
},
62
{
63
"cost": 3,
64
"ex": {
65
"mem": null,
66
"push": [
67
"0x40"
68
],
69
"store": null,
70
"used": 16756196
71
},
72
"pc": 2,
73
"sub": null
74
}
75
]
76
}
77
}
78
]
79
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [
9
{
10
"action": {
11
"from": "0x627306090abab3a6e1400e9345bc60c78a8bef57",
12
"callType": "call",
13
"gas": "0x7a120",
14
"input": "0xa9059cbb000000000000000000000000d46e8dd67c5d32be8058bb8eb970870f0724456700000000000000000000000000000000000000000000000000de0b6b3a7640000",
15
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
16
"value": "0x0"
17
},
18
"result": {
19
"gasUsed": "0x51c8",
20
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
21
},
22
"subtraces": 1,
23
"traceAddress": [],
24
"type": "call"
25
},
26
{
27
"action": {
28
"from": "0xdac17f958d2ee523a2206206994597c13d831ec7",
29
"callType": "call",
30
"gas": "0x73e5f",
31
"input": "0x",
32
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
33
"value": "0x0"
34
},
35
"result": {
36
"gasUsed": "0x0",
37
"output": "0x"
38
},
39
"subtraces": 0,
40
"traceAddress": [
41
0
42
],
43
"type": "call"
44
}
45
],
46
"vmTrace": {
47
"code": "0x608060405260043610610087577c01000000000000000000000000000000000000000000000000000000006000350463095ea7b3811461008c57806318160ddd146100d...",
48
"ops": [
49
{
50
"cost": 3,
51
"ex": {
52
"mem": null,
53
"push": [
54
"0x60"
55
],
56
"store": null,
57
"used": 16756199
58
},
59
"pc": 0,
60
"sub": null
61
},
62
{
63
"cost": 3,
64
"ex": {
65
"mem": null,
66
"push": [
67
"0x40"
68
],
69
"store": null,
70
"used": 16756196
71
},
72
"pc": 2,
73
"sub": null
74
}
75
]
76
}
77
}
78
]
79
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free