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_traceBlockByNumber",
"params": [
"0xccde12",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
Similar to debug_traceBlock, traceBlockByHashByNumber accepts a block number and will replay the block that is already present in the database.
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_traceBlockByNumber",
"params": [
"0xccde12",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
debug_traceBlockByNumber:params[0]: Block number where this transaction was included. Null when pending.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_traceBlockByNumber",
"params": [
"0xccde12",
{
"tracer": "callTracer"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"txHash": "0xabba...",
"result": {
"gas": 85301,
"returnValue": "",
"structLogs": [
"..."
]
}
},
{
"txHash": "0xacca...",
"result": {}
}
]
}
Was this page helpful?