Skip to main content

Parameters

chainId
string
default:"994873017"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"trace_replayTransaction"
required
JSON-RPC method name.
params
object
required
Parameters for method trace_replayTransaction: [hash, traceTypes].Positional parameters for trace_replayTransaction:
  • params[0]: 32 Bytes - Hash of the transaction.
  • params[1]: Types of traces to collect: “vmTrace”, “trace”, and/or “stateDiff”.

Returns

result
object
Object - Block traces.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=994873017 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "trace_replayTransaction",
    "params": [
      "0x02d4a872e096445e80d05276ee756cefef7f3b376bcec14246469c0cd97dad8f",
      [
        "trace"
      ]
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "output": "0x",
    "stateDiff": null,
    "trace": [
      {
        "action": {
          "__truncated": true
        },
        "result": {
          "__truncated": true
        },
        "subtraces": 0,
        "traceAddress": [
          "..."
        ],
        "type": "call"
      }
    ],
    "vmTrace": null
  }
}