curl -X POST -i -H "Accept: application/json" -d '{"jsonrpc": "2.0", "method":"getblockheaderbyhash", "params":{"hash": "1c989f5ecdf60699a42d9fc88523f00b5b2ad3cc7add18acf6489511b73091e7"}}' http://localhost:30159/json_rpc
request | response |
hash | major_version |
minor_version | |
timestamp | |
prev_hash | |
nonce | |
orphan_status | |
height | |
depth | |
hash | |
difficulty | |
reward | |
status |
sample:
{"jsonrpc":"2.0","result":{"block_header":{"depth":1549224,"difficulty":22349054,"hash":"1c989f5ecdf60699a42d9fc88523f00b5b2ad3cc7add18acf6489511b73091e7","height":1335533,"major_version":1,"minor_version":0,"nonce":1771679908,"orphan_status":false,"prev_hash":"482cd8b4ee38b37b005635b69aa524dbf34c2623b88172e8d58da505793043db","reward":146175770972,"timestamp":1573517257},"status":"OK"}}