Bitcoin-cli listtransaction - are these returned in any particular order?
Bitcoin-cli listtransaction - are these returned in any particular order? I am trying to write a small cron job, which queries bitcoin core for the transactions sent/received, and stores them in an external database. I was experimenting with bitcoin-cli listtransaction method. In the documentation, it says, that calling this method without any parameters should return the 10 latest transactions to the connected bitcoin wallet. It indeed returns the latest transaction that I made from the wallet, alas it returns them in an order, which for me seems unreasonable. It looks like, that the most recent transaction returned, is at the end of the returned JSON array. My questions are as follows: Is this always the case? The returned data is ordered from oldest to newest transactions? What about the time parameter near each transaction? Is that the time, the wallet seen the transaction? Is it possible that a transaction lower in the list will have a smaller timestamp than a transaction h...