curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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
}
}
Replays a transaction, returning the traces.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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
}
}
trace_replayTransaction:params[0]: 32 Bytes - Hash of the transaction.params[1]: Types of traces to collect: “vmTrace”, “trace”, and/or “stateDiff”.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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
}
}
Was this page helpful?