trace_replayBlockTransactions
Last updated:
`trace_replayBlockTransactions` replays all transactions in a single block in order, against the state as it existed at that block, and returns one trace result per transaction. Unlike a plain receipt, the result can include the full internal call tree, a step-by-step virtual-machine trace, and the set of state slots each transaction read and wrote.
You choose how much detail to return with the `traceTypes` array. Request only what you need: `vmTrace` in particular produces very large payloads (one entry per executed opcode) and is the most expensive mode to compute. For most call-graph analysis, `["trace"]` alone is enough.
Use this method for block-level forensics — reconstructing internal transfers, auditing MEV activity, or diffing state across a whole block — when per-transaction calls would be too chatty. This is a `pro`-tier method; requests authenticated with a lower tier are rejected with `-32002`.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"trace_replayBlockTransactions","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "trace_replayBlockTransactions",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"trace_replayBlockTransactions","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- Credit cost: 5 per call.
FAQ
- What does trace_replayBlockTransactions do?
- Re-executes every transaction in a block and returns a full execution trace — call graph, optional VM-level steps, and state changes — for each one.
- How many credits does trace_replayBlockTransactions cost?
- trace_replayBlockTransactions costs 5 credit(s) per call on Triport by default.
- Is trace_replayBlockTransactions available over WebSocket?
- trace_replayBlockTransactions is an HTTP JSON-RPC method.