iridium_walletd getTransactionHashes method

The getTransactionHashes method returns an array of block and transaction hashes.

back to methods summary

Input:

ArgumentMandatoryDescriptionFormatExample
addresses No Array of strings, where each string is an addressarray ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs
blockHashOnly one parameter (blockHash or firstBlockIndex) is allowed.Hash of the starting blockstringe0e5d3caf968e9af2b207d26c44ab7f9a51c6f25b684ef5ac6818a841a594354
firstBlockIndexOnly one parameter (blockHash or firstBlockIndex) is allowed.Starting heightuint321500
blockCountYesNumber of blocks to return transaction hashes fromuint3220
paymentIdNoValid payment_idstringsomePaymentId

Note: if paymentId parameter is set, getTransactionHashes() method returns transaction hashes of transactions that contain specified payment_id. (in the set block range)

Note: if addresses parameter is set, getTransactionHashes() method returns transaction hashes of transactions that contain transfer from at least one of specified addresses.

Note: if both above mentioned parameters are set, getTransactionHashes() method returns transaction hashes of transactions that contain both specified payment_id and transfer from at least one of specified addresses.

Output:

ArgumentDescriptionFormat
itemsArray with blockHash, transactionHashesarray

Input example:

{  
  'params':{  
     'blockCount':100,
     'firstBlockIndex':0,
     'addresses':[  
        'ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs'
     ]
  },
  'jsonrpc':'2.0',
  'id':'test',
  'method':'getTransactionHashes'
}

Output example:

{  
  'jsonrpc':'2.0',
  'id':'test',
  'result':{  
     'items':[  
        {  
           'transactionHashes':[  
               'ebe06b510867d0fccf21af0360e9713a5279fa7b50fceb99e1c5ea4b1ed97585',
               '111f1843d7c23cf8d55e77467fb616602a3eecec09528042d737cc16f396743d',
               'b8001fb41af358214854b074da43eb21ab40207efe2aa8c637dd8039b5de83be'
           ],
           'blockHash':'e81d0e23ef3fb0e7d64e4e528228fc293f447ab4cf8b8410a4ec82d3d387d4fc'
        }
     ]
  }

back to methods summary