I want to query the latest Received message in one account,I try "let tx = await account.listMessages(1, 1, 1)",After I test,it returned the oldest received message,not the recent
Asked
Active
Viewed 22 times
1 Answers
1
You should list all received messages with account.listMessages(0, 0, 1) and then look at the timestamp to find the latest message
Thoralf
- 166
- 4
-
There are too many received messages in my account,so for example I just need to get the latest 500 received messages everytime, – carrie yang Nov 30 '21 at 06:24