getblockhash - Pastel RPC

getblockhash height ( count )
Returns hashes of blocks in best-block-chain at the heights range provided.

Arguments:
1. height (numeric, required) The starting block height
2. count  (numeric, optional) Number of block hashes to return. Default is 1.
                              -1: all blocks up to the current tip
Result (no "count" parameter):
  "hash"  (string) The block hash

Result (with "count" parameter):
[		   (json array of objects)
  {
	"height": n,    (numeric) The block height
	"hash": "xxxxx" (string) The block hash
  },
  ...
]

Examples:
> pastel-cli getblockhash 1000 5
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000 5] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node

Addressindex