get_height - 获取钱包区块高度
get_height
返回钱包的当前区块高度。别名为getheight
。
输入参数
无
输出结果
- height:当前区块高度,unsigned int
示例代码
curl请求:
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_height"}' -H 'Content-Type: application/json'
响应结果:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"height": 145545
}
}