eth_getUncleCountByBlockHash
Returns the number of uncles in a block by hash.
Parameters
| Name | Type | Description |
|---|---|---|
| BlockHash | HexString<Hash> | Hash of the selected block. |
Return Type
HexString<Number> | null - Number of uncles in the block or null if not found.
Example
TypeScript
await provider.request({
method: "eth_getUncleCountByBlockHash",
params: [
"0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",
],
});
// "0x1"