eth_getUncleCountByBlockNumber
Retrieves the number of uncle blocks for a specific block identified by its number
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getUncleCountByBlockNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array of strings | |
| blockNumber | string | (optional) Block number as an integer, or string |
Response
200
The number of uncle blocks associated with the specified block| Name | Type | Description |
|---|---|---|
| Parameters | string | |
| uncles | string |