eth_getUncleCountByBlockHash
Method
- JSON-RPC method name:
eth_getUncleCountByBlockHash - JSON-RPC version:
2.0
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Block hash | string | no |
Parameter schema
{
"Block hash": {
"required": false,
"schema": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
Result
- Name:
Uncle count - Type:
oneOf
Result schema
{
"oneOf": [
{
"title": "Not Found (null)",
"type": "null"
},
{
"title": "Uncle count",
"type": "string",
"pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
}
]
}
Positional parameters
Parameter order:
Block hash
Errors
This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.
TODO: Document method-specific error codes and conditions.