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
Oct 26, 2026

Parameters

blockNumber
string
REQUIRED

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

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
string

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

stateDiff
object | null

(Conditional) State changes when requested; null otherwise.

trace
array

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

action
object

The action to be performed on the receiver id

from
string

The address of the sender

callType
string

The type of method such as call, delegatecall

gas
string

The gas provided by the sender, encoded as hexadecimal

input
string

The data sent along with the transaction

to
string

The address of the receiver

value
string

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

result
object | null

The integer of the gas price used encoded as hexadecimal

gasUsed
string

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

output
string

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
integer

The traces of contract calls made by the transaction

traceAddress
array

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

type
string

The value of the method such as call or create

error
string

(Conditional) Error message when execution fails.

vmTrace
object | null

(Conditional) Virtual machine trace when requested; null otherwise.

transactionHash
string

Hash of the transaction.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [
9
{
10
"type": "call",
11
"action": {
12
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
13
"callType": "call",
14
"gas": "0x1c96fc8",
15
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
16
"to": "0x0000000000000000000000000000000000002002",
17
"value": "0x3782dace9d900000"
18
},
19
"error": "Insufficient balance for transfer",
20
"result": null,
21
"subtraces": 0,
22
"traceAddress": []
23
}
24
],
25
"vmTrace": null,
26
"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"
27
}
28
]
29
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [
9
{
10
"type": "call",
11
"action": {
12
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
13
"callType": "call",
14
"gas": "0x1c96fc8",
15
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
16
"to": "0x0000000000000000000000000000000000002002",
17
"value": "0x3782dace9d900000"
18
},
19
"error": "Insufficient balance for transfer",
20
"result": null,
21
"subtraces": 0,
22
"traceAddress": []
23
}
24
],
25
"vmTrace": null,
26
"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"
27
}
28
]
29
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free