返回到文章

采纳

编辑于

eth_getUncleCountByBlockNumber

ethereumj
命令

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
}