Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
walletd_getblockhashes [2018/02/27 14:38]
stevebrush
walletd_getblockhashes [2019/01/11 00:47] (current)
Line 1: Line 1:
 ==== iridium_walletd getBlockHashes method ==== ==== iridium_walletd getBlockHashes method ====
 +
 +The getBlockHashes method returns an array of hashes for a specified block range.
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]
  
 +Input:
 +
 +^Argument^Mandatory^Description^Format^Example^
 +|firstBlockIndex| ​ Yes  |Starting at block height|uint32|1500|
 +|blockCount| ​ Yes  |Number of blocks to get|uint32|5|
 +
 +Output:
 +
 +^Argument^Description^Format^
 +|blockHashes|Array of block hash|array|
 +
 +Input example:
 +
 +<code json>
 +{  ​
 +  '​params':​{  ​
 +     '​blockCount':​5,​
 +     '​firstBlockIndex':​1500
 +  },
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​method':'​getBlockHashes'​
 +}
 +</​code>​
 +
 +Output example:
 +
 +<code json>
 +{  ​
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​result':​{  ​
 +     '​blockHashes':​[  ​
 +        '​928eb811326f0c28a96da953e77c6378b242816a05c3346e238b971a6b62e820',​
 +        '​96d00498472a738f4fc6fe20c968dd59d609b1a572e42965c020f5981a3c977d',​
 +        '​224124a2cba33b8469e75fd69bd761ea2034bba9877c7746e790523a12736fc1',​
 +        '​26bde72b827a18fc80520ff0bba8c2c606f1958f79e8a3afbdcb90d82601e13d',​
 +        '​e0e5d3caf968e9af2b207d26c44ab7f9a51c6f25b684ef5ac6818a841a594354'​
 +     ]
 +  }
 +}
 +</​code>​
  
 [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]] [[iridium_walletd_rpc_call#​Iridium RPC Wallet API methods summary|back to methods summary]]