When autocomplete results are available use up and down arrows to review and enter to go to the desired page. Touch device users, explore by touch or with swipe gestures.
findTransactionObjects({ addresses: [userAddress] }).then(response => {//somecode})
+x yehia67 - 29 Nov 2019Hello everyone, I have a question on how to fetch the last transaction that occurred to a given address and I don't have the bundle.I tried this javascript codefindTransactionObjects({ addresses: [userAddress] }).then(response => {//somecode})I supposed that the last element of response array will be the last transaction but its not. I need to fetch data from the last transaction occurred could anyone help me with that? Thanks in advance.
iota.findTransactionObjects({ addresses: [userAddress] }) .then(transactions => { //Sorting Array on Timestamp transactions.sort(function (x, y) { return y.timestamp - x.timestamp; });