Skip to main content

trace_replayTransaction

Parameters

  1. Hash - Transaction hash.
  2. Array - Type of trace, one or more of: "vmTrace", "trace", "stateDiff".

Returns

  • Object - Block traces.

Example

Request

curl https://eth-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"trace_replayTransaction","params":["0x02d4a872e096445e80d05276ee756cefef7f3b376bcec14246469c0cd97dad8f",["trace"]],"id":1,"jsonrpc":"2.0"}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"output": "0x",
"stateDiff": null,
"trace": [{
"action": {
"from": "0x00a63d34051602b2cb268ea344d4b8bc4767f2d4",
"callType": "call",
"gas": "0x0",
"input": "0x",
"to": "0x87cc0d78ee64a9f11b5affdd9ea523872eae14e4",
"value": "0x810e988a393f2000"
},
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"type": "call"
}],
"vmTrace": null
}
}