getblockhash
Returns hash of block in best-block-chain at height provided.
yerbas-cli getblockhash 1000
Arguments
Argument | Type | Description |
---|---|---|
"height" | (numeric) | The height index |
Arguments:
"height" (numeric, required) The height index
Output
Result | Type | Description |
---|---|---|
"hash" | (string) | The block hash |
Result:
"hash" (string) The block hash
Examples
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/