eth_getUncleCountByBlockNumber

半兽人 发表于: 2020-03-14   最后更新时间: 2020-03-14 15:57:01  
{{totalSubscript}} 订阅, 1,878 游览

eth_getUncleCountByBlockNumber,通过指定的区块号,返回uncle数量。

参数

  • QUANTITY - 区块号, 或 "latest", "earliest", "pending"
    params: [
     '0xe8', // 232
    ]
    

返回

  • QUANTITY - integer of the number of uncles in this block.

例子

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockNumber","params":["0xe8"],"id":1}'

// Result
{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0x1" // 1
}
更新于 2020-03-14
在线,1小时前登录

查看ethereumj更多相关的文章或提一个关于ethereumj的问题,也可以与我们一起分享文章