Skip to main content

getblockhashes

Returns array of hashes of blocks within the timestamp range provided.

yerbas-cli getblockhashes 1231614698 1231024505

Arguments

ArgumentTypeDescription
"high"(numeric)The newer block timestamp
"low"(numeric)The older block timestamp
Arguments:
1. high (numeric, required) The newer block timestamp
2. low (numeric, required) The older block timestamp

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": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/