get_block_record_by_height
get_block_record_by_height
调用返回指定高度的区块记录。
请求参数
- height:要查询区块的高度
响应结果
get_block_record_by_height
调用返回一个JSON对象,其block_record
字段为区块记录对象
示例代码
请求:
curl --insecure \
--cert ~/.chia/mainnet/config/ssl/full_node/private_full_node.crt \
--key ~/.chia/mainnet/config/ssl/full_node/private_full_node.key \
-d '{"height": 0}' \
-H "Content-Type: application/json" \
-X POST https://localhost:8555/get_block_record_by_height
响应:
{
"block_record": {
"challenge_block_info_hash": "0x45e3beae0441bab860109a977c94d9d8accb1927d7ad6e70faf84d18b9b96aaa",
"challenge_vdf_output": {
"data": "0x0000dafd52467f3f66cf25c7de3e432188b9c3000b95a09170ace441a214cffc5fa65a39a66f11085fea9c7a121cf7f86a74142506b6d51d6036097bff862707185dbba577707c248f2fca5877337e56905879a2ee840d28860c50ebcacaaaf53a660100"
},
"deficit": 15,
"farmer_puzzle_hash": "0x3d8765d3a597ec1d99663f6c9816d915b9f68613ac94009884c4addaefcce6af",
"fees": 0,
"finished_challenge_slot_hashes": [
"0xccd5bb71183532bff220ba46c268991a3ff07eb358e8255a65c30a2dce0e5fbb"
],
"finished_infused_challenge_slot_hashes": null,
"finished_reward_slot_hashes": [
"0xccd5bb71183532bff220ba46c268991a3ff07eb358e8255a65c30a2dce0e5fbb"
],
"header_hash": "0xd780d22c7a87c9e01d98b49a0910f6701c3b95015741316b3fda042e5d7b81d2",
"height": 0,
"infused_challenge_vdf_output": null,
"overflow": false,
"pool_puzzle_hash": "0xd23da14695a188ae5708dd152263c4db883eb27edeb936178d4d988b8f3ce5fc",
"prev_hash": "0xccd5bb71183532bff220ba46c268991a3ff07eb358e8255a65c30a2dce0e5fbb",
"prev_transaction_block_hash": "0xccd5bb71183532bff220ba46c268991a3ff07eb358e8255a65c30a2dce0e5fbb",
"prev_transaction_block_height": 0,
"required_iters": 1313186,
"reward_claims_incorporated": [],
"reward_infusion_new_challenge": "0xbdde7b5b2bc6025c07a9f5233d8eae167bea654146b272652262b362524c3e85",
"signage_point_index": 2,
"sub_epoch_summary_included": null,
"sub_slot_iters": 134217728,
"timestamp": 1616162474,
"total_iters": 11798946,
"weight": 7
},
"success": true
}