返回到文章

采纳

编辑于

eth_getUncleCountByBlockHash

ethereumj
命令

eth_getUncleCountByBlockHash,通过指定的区块hash,返回uncle数量。

参数

  • DATA, 32 Bytes - 区块hash
    params: [
     '0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238'
    ]
    

返回

  • QUANTITY - 该区块的uncle数量

例子

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

// Result
{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0x1" // 1
}