curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": [
"RLP_ENCODED_BLOCK",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
The traceBlock method will return a full stack trace of all invoked opcodes of all transaction that were included in this block.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": [
"RLP_ENCODED_BLOCK",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
debug_traceBlock:params[0]: The RLP encoded block.params[1]: Optional configuration object passed to tracing RPC methods.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": [
"RLP_ENCODED_BLOCK",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
Was this page helpful?