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_gettransactionhashes [2018/02/27 14:38]
stevebrush
walletd_gettransactionhashes [2019/01/11 00:47] (current)
Line 1: Line 1:
 ==== iridium_walletd getTransactionHashes method ==== ==== iridium_walletd getTransactionHashes method ====
 +
 +The getTransactionHashes method returns an array of block and transaction hashes.
  
 [[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^
 +|addresses| ​ No  |Array of strings, where each string is an address|array| ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs|
 +|blockHash|Only one parameter (blockHash or firstBlockIndex) is allowed.|Hash of the starting block|string|e0e5d3caf968e9af2b207d26c44ab7f9a51c6f25b684ef5ac6818a841a594354|
 +|firstBlockIndex|Only one parameter (blockHash or firstBlockIndex) is allowed.|Starting height|uint32|1500|
 +|blockCount|Yes|Number of blocks to return transaction hashes from|uint32|20|
 +|paymentId|No|Valid payment_id|string|somePaymentId|
 +
 +**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:
 +
 +^Argument^Description^Format^
 +|items|Array with blockHash, transactionHashes|array|
 +
 +Input example:
 +
 +<code json>
 +{  ​
 +  '​params':​{  ​
 +     '​blockCount':​100,​
 +     '​firstBlockIndex':​0,​
 +     '​addresses':​[  ​
 +        '​ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs'​
 +     ]
 +  },
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​method':'​getTransactionHashes'​
 +}
 +</​code>​
 +
 +Output example:
 +
 +<code json>
 +{  ​
 +  '​jsonrpc':'​2.0',​
 +  '​id':'​test',​
 +  '​result':​{  ​
 +     '​items':​[  ​
 +        {  ​
 +           '​transactionHashes':​[  ​
 +               '​ebe06b510867d0fccf21af0360e9713a5279fa7b50fceb99e1c5ea4b1ed97585',​
 +               '​111f1843d7c23cf8d55e77467fb616602a3eecec09528042d737cc16f396743d',​
 +               '​b8001fb41af358214854b074da43eb21ab40207efe2aa8c637dd8039b5de83be'​
 +           ],
 +           '​blockHash':'​e81d0e23ef3fb0e7d64e4e528228fc293f447ab4cf8b8410a4ec82d3d387d4fc'​
 +        }
 +     ]
 +  }
 +</​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]]