I'm building a little IOTA test project with TypeScript + Node.js.
I want to start an action when IOTAs are received on an certain address.
I've tried the findTransactionObjects
function, but I don't understand the result. It contains an Array of all transactions of this address including pending ones. In the TransactionObject
I only see properties like address
, attachmentTimestamp
, currentIndex
, tag
, but no one like confirmed
.
How can I make sure or validate, that a transaction is confirmed with the iota.lib.js?
iota.api.findTransactionObjects({"addresses": ["QZZFKBIQNIBFNZBEU9DLGKHRMOWWGRDAYBKFAXSBWMDXEEAWIRUDDOVSEEFJ9ECH9VWJAFKLHSFAYUHJC"] }, function (error, result) {
console.log(result);
});