curl -X GET -i -H "Accept: application/json" -d '{"jsonrpc": "2.0"}' http://localhost:30159/getlastblockheader
request | response |
major_version | |
minor_version | |
timestamp | |
prev_hash | |
nonce | |
orphan_status | |
height | |
depth | |
hash | |
difficulty | |
reward | |
status |
sample:
{"block_header":{"depth":0,"difficulty":12505077,"hash":"9822a56c49ef3c488d00e5b2c51f0088cfe2d0d31d89526f13cc9dc73d71fe94","height":2884675,"major_version":1,"minor_version":0,"nonce":2317320364,"orphan_status":false,"prev_hash":"939de34a22cc96db1d9f97568559d369c92cc819f3cf4536e8a3a5e3577a4abc","reward":142743165765,"timestamp":1614136217},"status":"OK"}