Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transactions api pagination #27

Closed
roccomuso opened this issue Sep 18, 2019 · 6 comments
Closed

transactions api pagination #27

roccomuso opened this issue Sep 18, 2019 · 6 comments

Comments

@roccomuso
Copy link

roccomuso commented Sep 18, 2019

Don't know if is the right place to open this issue.
I'd like to know if there's a way to paginate returned txs by waves explorer api.

I'm referring to this endpoint specifically https://nodes.wavesplatform.com/transactions/address/${address}/limit/${limit}

@jahsus-waves
Copy link
Member

Hello, roccomuso! we've already implemented transactions pagination in explorer

@roccomuso
Copy link
Author

Are you talking about API?
can you link doc or give some hints?

@beregovoy68
Copy link
Contributor

beregovoy68 commented Sep 19, 2019

Hi Rocco,

If you asked about API here is the answer: pagination exists, but not documented clear enough.

You can find it here: https://testnode2.wavesnodes.com/api-docs/index.html#!/transactions/addressLimit
Query parameter after says 'give me ${limit} transactions starting from transaction with id=${after}'

Does it make sense to you?

@roccomuso
Copy link
Author

roccomuso commented Sep 20, 2019

Yes that's it.
The issue is I'd like to use the after param as a cursor to get recent txs. But in order to do that I should have txs returned ASC by timestamp and not DESC by timestamp. Or in alternative have a param like before.

@beregovoy68
Copy link
Contributor

Currently you can't change transaction ordering.

If you still need that functionality please create an issue in Waves node project describing your use case.

Cheers

@roccomuso
Copy link
Author

Ok, thanks, opened: wavesplatform/Waves#2622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants