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
Apr 16, 2026
Please note that this RPC method is available to all users on the Build plan and higher. If you are using the Free plan, you will need to upgrade to utilize this method. See our pricing for more information.

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. safe and finalized are only supported on Ethereum and Gnosis

array
array
REQUIRED

The type of trace to retrieve. One or more of: trace (basic call trace), vmTrace (full VM execution trace), stateDiff (state changes due to the 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

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

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

The result object of the trace execution

gasUsed
string

The amount of gas used by this specific call, 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 number of subtraces created by this call

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 type of trace 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

transactionHash
string

The transaction hash

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [],
9
"vmTrace": null,
10
"transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2"
11
},
12
{
13
"output": "0x",
14
"stateDiff": null,
15
"trace": [],
16
"vmTrace": null,
17
"transactionHash": "0x661466a232b217110b9f9a83534cac4b4bf980078ef08489053af9b50f50bee8"
18
}
19
]
20
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [],
9
"vmTrace": null,
10
"transactionHash": "0xbaa27fa540f50254c7200cacfb5c725174f96ae3198b653853e1353a9bdc03b2"
11
},
12
{
13
"output": "0x",
14
"stateDiff": null,
15
"trace": [],
16
"vmTrace": null,
17
"transactionHash": "0x661466a232b217110b9f9a83534cac4b4bf980078ef08489053af9b50f50bee8"
18
}
19
]
20
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free