API Docs
Search
K
Comment on page

trace_replayTransaction

Replays a transaction, returning the traces

Parameters

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

Returns

Object - Block transactions traces.
``

Example

Request
curl https://rpc.<REGION>.gateway.fm/v4/gnosis/non-archival/mainnet \
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"trace_replayTransaction","params":["0x02d4a872e096445e80d05276ee756cefef7f3b376bcec14246469c0cd97dad8f",["trace"]],"id":1,"jsonrpc":"2.0"}'
Result
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": null,
"trace": [{
"action": { ... },
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"type": "call"
}],
"vmTrace": null
}
}