eth_getUncleCountByBlockHash

Retrieves the number of uncle blocks for a specific block identified by its hash

Request
Examples
curl https://rpc.xone.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getUncleCountByBlockHash","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"],"id":1,"jsonrpc":"2.0"}'
'
Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersstring 
hashstringThe hash of the block for which to count the uncle blocks.

Response

200
The number of uncle blocks associated with the specified block, returned as an integer.
NameTypeDescription
Parametersstring 
unclesstring