更新时间:2024-03-06 GMT+08:00

eth_getUncleCountByBlockNumber

简介

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

参数说明

参数

类型

说明

区块编号

String

想要查询的区块的十六进制的编号。

返回值

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

请求样式

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