Skip to main content

trace_replayBlockTransactions RPC Method

Replays all transactions in a block returning the requested traces for each transaction (Supported on Erigon).

Updated on
May 06, 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

blockNumber
string

The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum and Gnosis

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

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

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

stateDiff

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

trace

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

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": "0xa06c3c08a19e51b33309eddfb356c33ead8517a3",
12
"callType": "call",
13
"gas": "0x23c30",
14
"input": "0x00000055000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000ccb93d0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000fa6de2697d59e88ed7fc4dfe5a33dac43565ea41000000000000000000000000fa6de2697d59e88ed7fc4dfe5a33dac43565ea410000000000000000000000008dcba0b75c1038c4babbdc0ff3bd9a8f6979dd13000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000000000000000000000000000359b994a1cd0f8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4022c0d9f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000108c24b47b23b1c1cba000000000000000000000000ec001d0000004536cad29291f4000000d029abb20000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000645db34277000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000000000000000000000000108c24b47b23b1c1cba00000000000000000000000000000000000000000000000900e43c0913bd8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000008dcba0b75c1038c4babbdc0ff3bd9a8f6979dd1300000000000000000000000000000000000000000000000900e43c0913bd80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4022c0d9f000000000000000000000000000000000000000000000000362804ffdb77a1630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ec001d0000004536cad29291f4000000d029abb200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15
"to": "0xec001d0000004536cad29291f4000000d029abb2",
16
"value": "0x0"
17
},
18
"result": {
19
"gasUsed": "0x203b8",
20
"output": "0x"
21
},
22
"subtraces": 5,
23
"traceAddress": [],
24
"type": "call"
25
},
26
{
27
"action": {
28
"from": "0xec001d0000004536cad29291f4000000d029abb2",
29
"callType": "call",
30
"gas": "0x22c00",
31
"input": "0xa9059cbb0000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000000000000000000000000000359b994a1cd0f800",
32
"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
33
"value": "0x0"
34
},
35
"result": {
36
"gasUsed": "0x229e",
37
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
38
},
39
"subtraces": 0,
40
"traceAddress": [
41
0
42
],
43
"type": "call"
44
}
45
],
46
"vmTrace": null,
47
"transactionHash": "0x9fae42bbd5b3676bf336db6dab601a60065a4b18bad8a186f2d61ad474edcfd8"
48
},
49
{
50
"output": "0x",
51
"stateDiff": null,
52
"trace": [
53
{
54
"action": {
55
"from": "0xc58d260fabd9d06461eb5b6b22e7508204424a60",
56
"callType": "call",
57
"gas": "0x24c27",
58
"input": "0x1249c58b",
59
"to": "0x3d2224b431c359b2876858436d3a94db777adec7",
60
"value": "0xde0b6b3a7640000"
61
},
62
"result": {
63
"gasUsed": "0x2435a",
64
"output": "0x"
65
},
66
"subtraces": 1,
67
"traceAddress": [],
68
"type": "call"
69
},
70
{
71
"action": {
72
"from": "0x3d2224b431c359b2876858436d3a94db777adec7",
73
"callType": "call",
74
"gas": "0x8fc",
75
"input": "0x",
76
"to": "0x7f76ed6da61ce62d5cb5f2ac978f7b2b5160cc11",
77
"value": "0xde0b6b3a7640000"
78
},
79
"result": {
80
"gasUsed": "0x0",
81
"output": "0x"
82
},
83
"subtraces": 0,
84
"traceAddress": [
85
0
86
],
87
"type": "call"
88
}
89
],
90
"vmTrace": null,
91
"transactionHash": "0x301c860561a956cfc74d09825e4dd8fb7f441fa9b9a70ccf2c4bedcf42500873"
92
},
93
{
94
"output": "0x",
95
"stateDiff": null,
96
"trace": [
97
{
98
"action": {
99
"from": "0x21f975212041d7fa2f9c74b3446196ebe8c98c72",
100
"callType": "call",
101
"gas": "0xb3da",
102
"input": "0xa8a41c700000000000000000000000007be8076f4ea4a4ad08075c2508e481d6c946d12b00000000000000000000000021f975212041d7fa2f9c74b3446196ebe8c98c7200000000000000000000000000000000000000000000000000000000000000000000000000000000000000005b3256965e7c3cf26e11fcaf296dfc8807c01073000000000000000000000000dcc2b586edac6e5360d67c2bef85009072e83b7d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000079e70975db08000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000616838330000000000000000000000000000000000000000000000000000000062582986ad48ada182ff388f26b0a999c13c70ce03129eab2a0466434698f8390befcd250000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000001bb9f8d6baf519bd4bf4b7b1648e8633e85f67b8af086b8be420303fff2493e28a472d7d4733d4e5d653e1c863813a889f75afb403fa2493a44f1ebd858f561111000000000000000000000000000000000000000000000000000000000000006423b872dd00000000000000000000000021f975212041d7fa2f9c74b3446196ebe8c98c7200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000488000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
103
"to": "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b",
104
"value": "0x0"
105
},
106
"result": {
107
"gasUsed": "0xb3da",
108
"output": "0x"
109
},
110
"subtraces": 0,
111
"traceAddress": [],
112
"type": "call"
113
}
114
],
115
"vmTrace": null,
116
"transactionHash": "0x365157f168e3f71748d544db69554d452cc55162b25d416975cbb17b11eece2f"
117
}
118
],
119
"_truncated": true,
120
"_note": "Response truncated for documentation. Original had 914 total items, showing 10."
121
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [
9
{
10
"action": {
11
"from": "0xa06c3c08a19e51b33309eddfb356c33ead8517a3",
12
"callType": "call",
13
"gas": "0x23c30",
14
"input": "0x00000055000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000ccb93d0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000fa6de2697d59e88ed7fc4dfe5a33dac43565ea41000000000000000000000000fa6de2697d59e88ed7fc4dfe5a33dac43565ea410000000000000000000000008dcba0b75c1038c4babbdc0ff3bd9a8f6979dd13000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000000000000000000000000000359b994a1cd0f8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4022c0d9f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000108c24b47b23b1c1cba000000000000000000000000ec001d0000004536cad29291f4000000d029abb20000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000645db34277000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000000000000000000000000108c24b47b23b1c1cba00000000000000000000000000000000000000000000000900e43c0913bd8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000008dcba0b75c1038c4babbdc0ff3bd9a8f6979dd1300000000000000000000000000000000000000000000000900e43c0913bd80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4022c0d9f000000000000000000000000000000000000000000000000362804ffdb77a1630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ec001d0000004536cad29291f4000000d029abb200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15
"to": "0xec001d0000004536cad29291f4000000d029abb2",
16
"value": "0x0"
17
},
18
"result": {
19
"gasUsed": "0x203b8",
20
"output": "0x"
21
},
22
"subtraces": 5,
23
"traceAddress": [],
24
"type": "call"
25
},
26
{
27
"action": {
28
"from": "0xec001d0000004536cad29291f4000000d029abb2",
29
"callType": "call",
30
"gas": "0x22c00",
31
"input": "0xa9059cbb0000000000000000000000003da1313ae46132a397d90d95b1424a9a7e3e0fce000000000000000000000000000000000000000000000000359b994a1cd0f800",
32
"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
33
"value": "0x0"
34
},
35
"result": {
36
"gasUsed": "0x229e",
37
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
38
},
39
"subtraces": 0,
40
"traceAddress": [
41
0
42
],
43
"type": "call"
44
}
45
],
46
"vmTrace": null,
47
"transactionHash": "0x9fae42bbd5b3676bf336db6dab601a60065a4b18bad8a186f2d61ad474edcfd8"
48
},
49
{
50
"output": "0x",
51
"stateDiff": null,
52
"trace": [
53
{
54
"action": {
55
"from": "0xc58d260fabd9d06461eb5b6b22e7508204424a60",
56
"callType": "call",
57
"gas": "0x24c27",
58
"input": "0x1249c58b",
59
"to": "0x3d2224b431c359b2876858436d3a94db777adec7",
60
"value": "0xde0b6b3a7640000"
61
},
62
"result": {
63
"gasUsed": "0x2435a",
64
"output": "0x"
65
},
66
"subtraces": 1,
67
"traceAddress": [],
68
"type": "call"
69
},
70
{
71
"action": {
72
"from": "0x3d2224b431c359b2876858436d3a94db777adec7",
73
"callType": "call",
74
"gas": "0x8fc",
75
"input": "0x",
76
"to": "0x7f76ed6da61ce62d5cb5f2ac978f7b2b5160cc11",
77
"value": "0xde0b6b3a7640000"
78
},
79
"result": {
80
"gasUsed": "0x0",
81
"output": "0x"
82
},
83
"subtraces": 0,
84
"traceAddress": [
85
0
86
],
87
"type": "call"
88
}
89
],
90
"vmTrace": null,
91
"transactionHash": "0x301c860561a956cfc74d09825e4dd8fb7f441fa9b9a70ccf2c4bedcf42500873"
92
},
93
{
94
"output": "0x",
95
"stateDiff": null,
96
"trace": [
97
{
98
"action": {
99
"from": "0x21f975212041d7fa2f9c74b3446196ebe8c98c72",
100
"callType": "call",
101
"gas": "0xb3da",
102
"input": "0xa8a41c700000000000000000000000007be8076f4ea4a4ad08075c2508e481d6c946d12b00000000000000000000000021f975212041d7fa2f9c74b3446196ebe8c98c7200000000000000000000000000000000000000000000000000000000000000000000000000000000000000005b3256965e7c3cf26e11fcaf296dfc8807c01073000000000000000000000000dcc2b586edac6e5360d67c2bef85009072e83b7d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000079e70975db08000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000616838330000000000000000000000000000000000000000000000000000000062582986ad48ada182ff388f26b0a999c13c70ce03129eab2a0466434698f8390befcd250000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000001bb9f8d6baf519bd4bf4b7b1648e8633e85f67b8af086b8be420303fff2493e28a472d7d4733d4e5d653e1c863813a889f75afb403fa2493a44f1ebd858f561111000000000000000000000000000000000000000000000000000000000000006423b872dd00000000000000000000000021f975212041d7fa2f9c74b3446196ebe8c98c7200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000488000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
103
"to": "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b",
104
"value": "0x0"
105
},
106
"result": {
107
"gasUsed": "0xb3da",
108
"output": "0x"
109
},
110
"subtraces": 0,
111
"traceAddress": [],
112
"type": "call"
113
}
114
],
115
"vmTrace": null,
116
"transactionHash": "0x365157f168e3f71748d544db69554d452cc55162b25d416975cbb17b11eece2f"
117
}
118
],
119
"_truncated": true,
120
"_note": "Response truncated for documentation. Original had 914 total items, showing 10."
121
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free