1

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

1 Answer 1

1

You should list all received messages with account.listMessages(0, 0, 1) and then look at the timestamp to find the latest message

1
  • There are too many received messages in my account,so for example I just need to get the latest 500 received messages everytime, Nov 30, 2021 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.