更新时间:2023-10-16 GMT+08:00

eth_getUncleCountByBlockHash

简介

返回与给定区块哈希匹配的区块中叔区块的数量。该API所消耗的计算单元为16。

参数说明

参数

类型

说明

区块哈希

String

想要查询的区块的哈希值。

返回值

区块中叔区块的数量,以十六进制为编码。

请求样式

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"}'