eth_getUncleCountByBlockHash

Returns the number of uncles in a block by hash.

Parametersarrow-up-right

Name
Type
Description

BlockHash

HexString<Hash>

Hash of the selected block.

Return Typearrow-up-right

HexString<Number> | null - Number of uncles in the block or null if not found.

Examplearrow-up-right

await provider.request({
  method: "eth_getUncleCountByBlockHash",
  params: [
    "0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",
  ],
});
// "0x1"

Last updated

Was this helpful?