isaiahbs Hello, I am trying to download all my account downloads using js but I am having trouble coding something up. In the sdk is shows ways to download a single page containing up to 10 transactions but I want it to show literally every transaction on my account. How do I write a loop using: .then(function (page) { console.log('Page 1: '); console.log(page.records); return page.next(); }) and make it so it is a while loop(while there are more pages keep pulling new info). I don't want to copy and paste that over and over when I don't know how many transactions there will be. Thanks!
brewaa You could try the streaming requests example. https://www.stellar.org/developers/js-stellar-sdk/reference/
isaiahbs I started stream now but I need access to the memo and that is only given as a html address in the form of the transaction. how do i access that?
brewaa Use the payment transaction hash to fetch the transaction. Something like: server.transactions() .transaction(payment.transaction_hash) .call() .then(...) Also see the Following links section on the same page
isaiahbs Can I do a server call within a server call? I want to get the memo and display it in a specific spot in the first server call.
nick0816 maybe my quick script helps.. a server stream observing the payments for one account.. if a Payment happens it gets the transaction the payment is in and reads the memo. http://abcxyz.de/2018/01/27/paymentmailer/ cheers