Eth_getUncleCountByBlockHash

Get the number of uncle blocks by block hash

post

Sends a JSON-RPC request to retrieve the number of uncle blocks for a given block hash. Returns the count encoded as a hexadecimal string.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 2.0
methodstringRequiredExample: eth_getUncleCountByBlockHash
paramsstring[] · min: 1 · max: 1Required

An array containing the block hash

Example: ["0x9b559a937406429b662b9bd5b2be3c7a2ed36b5a0dbcf0d07a987f695705daec"]
idintegerRequiredExample: 1
Responses
chevron-right
200

Number of uncles in the block

application/json
jsonrpcstringOptionalExample: 2.0
idintegerOptionalExample: 1
resultstringOptional

The number of uncle blocks as a hex string (e.g., "0x2" for 2 uncles)

post
/
200

Number of uncles in the block

Last updated