added findTransactionObjects

This commit is contained in:
pinpong
2016-12-24 10:46:20 +01:00
parent 3a3f7f6a59
commit 3f8922a089
+10
View File
@@ -336,6 +336,16 @@ public class IotaAPIProxy {
return trxs;
}
public List<Transaction> findTransactionObjects(String[] input) {
FindTransactionResponse ftr = findTransactions(input, null, null, null);
if (ftr == null || ftr.getHashes() == null)
return null;
// get the transaction objects of the transactions
return getTransactionsObjects(ftr.getHashes());
}
/**
* Wrapper function for findTransactions, getTrytes and transactionObjects
* Returns the transactionObject of a transaction hash. The input can be a valid