how to sort listWalletTransaction by transaction time?

+1 vote
how get last two transactions ?

 

I need an answer in this sequence:

29.11.2017

30.11.2017

01.12.2017
asked Dec 1, 2017 by ilnar

1 Answer

0 votes

The output of listwallettransactions is always sorted in reverse chronological order, with the exact ordering defined by the time the transaction was added to the wallet. If you want to make it increasing chronological order, just reverse the order at the application level.

answered Dec 1, 2017 by MultiChain
Yes, I need to change the order. but when a lot of transactions come to me it's hard to download all the transactions and only then I can change the order.
I need to receive the last transaction on request. in this order
12/01/2017
11/30/2017
11/29/2017
.....
...
I'm not sure I understand the problem. By default listwallettransactions returns the most recent transactions. You just need to reverse the order after obtaining the API response. This should be easy in whichever programming language you are using to access the API.
everything turns out all right. Excuse for troubling!
...