eth_getUncleCountByBlockHash - Ethereum

eth_getUncleCountByBlockHash. Returns the number of uncles in a block matching the given block hash

eth_getUncleCountByBlockHash - ethereum [Value: 15CU]
Returns the number of uncles in a block matching the given block hash.
Use cases

Use cases

  • Count uncle blocks in a specific block
  • Verify uncle block count for blockchain analysis
  • Monitor uncle block occurrences in a given block
Constraints

Constraints

  • Requires valid block hash input
  • Node must be synchronized with the blockchain
  • Accurate block hash is essential for results
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

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

Request params

idinteger
jsonrpcstring
methodstring
Parametersstring
string
hashstring
The hash of the block to get uncles for.

Response

200
The integer value of the number of uncles in the block encoded as hexadecimal.

Response params

string
unclesstring
The integer value of the number of uncles in the block encoded as hexadecimal.