Skip to main content

getblockhash

Returns hash of block in best-block-chain at height provided.

yerbas-cli getblockhash 1000

Arguments

ArgumentTypeDescription
"height"(numeric)The height index
Arguments:
"height" (numeric, required) The height index

Output

ResultTypeDescription
"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/