Appearance
trace_replayBlockTransactions
served · same as reth
Runs every transaction of a block again and returns the trace types that you ask for, one result per transaction.
When to use
Use it to get the state changes (stateDiff) of all transactions of a block in one request.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "trace_replayBlockTransactions", "params": ["0x18facaa", ["trace"]]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "trace_replayBlockTransactions",
"params": [
"0x18facaa",
[
"trace"
]
]
}Response
Live mainnet, block 26193066, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"output": "0x",
"stateDiff": null,
"trace": [
{
"type": "call",
"action": {
"from": "0x8d8d7ea4761e3c0a78652331a844a121a63ac2b3",
"callType": "call",
"gas": "0x0",
"input": "0x",
"to": "0x351101b6341abb86b68bd5d18d26d8ddfe13fee1",
"value": "0x1db0508fb65ee"
},
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": []
}
],
"vmTrace": null,
"transactionHash": "0x6aab65ac3b5c83ca28846ab031e5f75d853aa8f496c8f4b83760f35423a0b950"
},
"... 54 more items"
]
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
block | block number in hex, or a tag, see Block parameter | yes | The block. |
traceTypes | list of strings, see Trace (trace_*) | yes | Any of trace, vmTrace and stateDiff. |
Returns
A list with one object per transaction. Each has output, trace, vmTrace, stateDiff and transactionHash. See Trace (trace_*).
Notes and limits
- Tracing works for the head and the 127 blocks before it.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | Invalid params | A trace type is unknown. data names the valid types. |
| -32001 | block not found: 0x... | The block is above the head. |
| 4444 | pruned history unavailable: requested N, earliest available M | The block is below the first block of the node. |
| -32603 | failed to apply blockhash contract call: database error: Database error: insufficient changesets to revert to block #N. Available changeset range: A..=B | The state of the parent block is gone: it is more than 128 blocks below the head. Below the first block of the node, the error is 4444. |
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
trace_replayTransaction, trace_block.
Schema (OpenRPC)
More: trace_replayBlockTransactions.
Parameter block: BlockNumberOrTag
json
{
"title": "Block number or tag",
"oneOf": [
{
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
{
"title": "Block tag",
"type": "string",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"description": "latest is the head of the last forkchoice update, as reth. pending is the block that Cinder builds from its transaction pool after latest, as reth. safe and finalized are the blocks of the last forkchoice update, as reth. Before the first update, they name no block. earliest is the first block that the node stored, as reth."
}
]
}Parameter traceTypes: ParityTraceTypes
json
{
"title": "Trace types",
"description": "Which parts of the result to return.",
"type": "array",
"items": {
"type": "string",
"enum": [
"trace",
"stateDiff",
"vmTrace"
]
}
}Result: TransactionReplay[]
json
{
"type": "array",
"items": {
"title": "Parity replay result of one transaction",
"allOf": [
{
"title": "Parity replay result",
"description": "The parts that the trace types asked for. A part not asked for is null.",
"type": "object",
"properties": {
"output": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"trace": {
"oneOf": [
{
"type": "array",
"items": {
"title": "Parity call trace",
"type": "object",
"properties": {
"action": {
"title": "Parity trace action",
"type": "object",
"description": "A call, create or self-destruct action. The fields depend on the type.",
"properties": {
"callType": {
"type": "string"
},
"from": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"to": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"gas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"input": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"value": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"init": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"balance": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"refundAddress": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
}
},
"result": {
"oneOf": [
{
"type": "object",
"properties": {
"gasUsed": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"output": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"code": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
}
}
},
{
"type": "null"
}
]
},
"error": {
"type": "string"
},
"subtraces": {
"type": "integer"
},
"traceAddress": {
"type": "array",
"items": {
"type": "integer"
}
},
"type": {
"type": "string",
"enum": [
"call",
"create",
"suicide",
"reward"
]
}
}
}
},
{
"type": "null"
}
]
},
"stateDiff": {
"oneOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"description": "An object that maps an address to the change of its balance, nonce, code and storage."
},
"vmTrace": {
"oneOf": [
{
"type": "object"
},
{
"type": "null"
}
]
}
}
},
{
"type": "object",
"properties": {
"transactionHash": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
]
}
}