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

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray 
blockNumberstringSpecifies the block number for fetching the transaction.
tracerobjectSupports callTracer and prestateTracer for detailed trace analysis.

Response

200
Array of block traces.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultarray_of_objectsVaries for callTracer and prestateTracer.