Skip to main content

Parameters

chainId
string
default:"1101"
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_replayBlockTransactions"
required
JSON-RPC method name.
params
object
required
Parameters for the trace_replayBlockTransactions method: [defaultBlock, traceTypes].Positional parameters for trace_replayBlockTransactions:
  • params[0]: Block identifier. Can be an integer block number or a string tag: “latest”, “earliest”, or “pending”.
  • params[1]: Types of traces to collect: “vmTrace”, “trace”, and/or “stateDiff”.

Returns

result
array
Array - Block transactions traces.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1101 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "trace_replayBlockTransactions",
    "params": [
      "0x2ed119",
      [
        "trace"
      ]
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "output": "0x",
      "stateDiff": null,
      "trace": [
        {
          "__truncated": true
        }
      ],
      "transactionHash": "0x...",
      "vmTrace": null
    }
  ]
}