iridium_walletd getBlockHashes method
The getBlockHashes method returns an array of hashes for a specified block range.
Input:
Argument | Mandatory | Description | Format | Example |
---|---|---|---|---|
firstBlockIndex | Yes | Starting at block height | uint32 | 100 |
blockCount | Yes | Number of blocks to get | uint32 | 5 |
Output:
Argument | Description | Format |
---|---|---|
blockHashes | Array of block hash | array |
Input example:
{ "params":{ "blockCount":5, "firstBlockIndex":100 }, "jsonrpc":"2.0", "id":"test", "method":"getBlockHashes" }
$ curl -s -X POST -d '{"params":{"blockCount":5,"firstBlockIndex":100},"jsonrpc":"2.0","id":"test","method":"getBlockHashes"}' localhost:14101/json_rpc | jq
Output example:
{ "id": "test", "jsonrpc": "2.0", "result": { "blockHashes": [ "c71c037a4b6b310a51fbf675309630529f71bbe3b7a86a4bd6b9b000b6d03d09", "8c21ce94fc78e1dc5ba5efde495c89197e79a38182c9326444ca17d446338182", "3413dbeaf2417183c68743fde4c57b5ec07ac9229b067ec0cfbbd6f6eab0800d", "1158f73c7832ae58e64a0b02dc74da28864d5d00af3cf261185b857273e3e597", "551bb6c7dcf68aeec3b931e1b9a207f2459666c2894ad61aab2462477a6380b8" ] } }