getBlockHashByNumber
返回根据区块高度查询的区块哈希
参数
groupID
:unsigned int
- 群组IDblockNumber
:string
- 区块高度(十进制字符串或0x开头的十六进制字符串)
返回值
blockHash
:string
- 区块哈希- 示例
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"getBlockHashByNumber","params":[1,"0x1"],"id":1}' http://127.0.0.1:8545 |jq
// Result
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x10bfdc1e97901ed22cc18a126d3ebb8125717c2438f61d84602f997959c631fa"
}
当前内容版权归 fisco-bcos.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 fisco-bcos.org .