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_rawTransaction",
"params": [
"",
[]
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"output": "0x",
"stateDiff": null,
"trace": [
{
"action": {
"__truncated": true
},
"result": {
"__truncated": true
},
"subtraces": 0,
"traceAddress": [
"..."
],
"type": "call"
}
],
"vmTrace": null
}
}
Traces a call to eth_sendRawTransaction without making the call, 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_rawTransaction",
"params": [
"",
[]
]
}'
{
"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_rawTransaction:params[0]: Data - Raw transaction data.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_rawTransaction",
"params": [
"",
[]
]
}'
{
"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?