Updated on 2024-11-14 GMT+08:00

eth_getUncleCountByBlockHash

Introduction

This API returns the number of uncles for the block by block hash. It consumes 12 CUs.

Parameter Description

Parameter

Type

Description

Block hash

String

The hash of a block.

Return Value

The number of uncles in the block encoded as hexadecimal.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getUncleCountByBlockHash","params":["0x81e807e7a6031d9f103eeee2a2edc5994c3432ee1e3227c66ff78eef30ea1dec"],"id":1,"jsonrpc":"2.0"}'