debug_traceBlockByNumber
he debug_traceBlockByNumber method traces the execution of all transactions within a specified block, identified by its block number
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceBlockByNumber","params":["0xccde12", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "CALL",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"value": "0x0",
"gas": "0x7fffffffffffadf7",
"gasUsed": "0x0",
"input": "0x",
"output": "0x"
}
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array | |
blockNumber | string | Specifies the block number for fetching the transaction. |
tracer | object | Supports callTracer and prestateTracer for detailed trace analysis. |
Response
200
Array of block traces.Name | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | array_of_objects | Varies for callTracer and prestateTracer. |