iridium_walletd getBlockHashes method

The getBlockHashes method returns an array of hashes for a specified block range.

back to methods summary

Input:

ArgumentMandatoryDescriptionFormatExample
firstBlockIndex Yes Starting at block heightuint321500
blockCount Yes Number of blocks to getuint325

Output:

ArgumentDescriptionFormat
blockHashesArray of block hasharray

Input example:

{  
  'params':{  
     'blockCount':5,
     'firstBlockIndex':1500
  },
  'jsonrpc':'2.0',
  'id':'test',
  'method':'getBlockHashes'
}

Output example:

{  
  'jsonrpc':'2.0',
  'id':'test',
  'result':{  
     'blockHashes':[  
        '928eb811326f0c28a96da953e77c6378b242816a05c3346e238b971a6b62e820',
        '96d00498472a738f4fc6fe20c968dd59d609b1a572e42965c020f5981a3c977d',
        '224124a2cba33b8469e75fd69bd761ea2034bba9877c7746e790523a12736fc1',
        '26bde72b827a18fc80520ff0bba8c2c606f1958f79e8a3afbdcb90d82601e13d',
        'e0e5d3caf968e9af2b207d26c44ab7f9a51c6f25b684ef5ac6818a841a594354'
     ]
  }
}

back to methods summary