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

Accessing transactions broken into pages #78

Open
PanosChtz opened this issue May 6, 2021 · 1 comment
Open

Accessing transactions broken into pages #78

PanosChtz opened this issue May 6, 2021 · 1 comment

Comments

@PanosChtz
Copy link

I noticed that the insight-api breaks transactions into pages, with each page containing up to 10 transactions.
Take block #1460000 for example:
https://explorer.dash.org/insight/block/00000000000000009891170e922835b046a48dcb738f6c2287f144ad7d65c249
which has 34 transactions.
The api query only returns the first 10 transactions
https://explorer.dash.org/insight-api/txs/?block=00000000000000009891170e922835b046a48dcb738f6c2287f144ad7d65c249
and has a “pagesTotal:4”. How do you query the rest of the pages?

@antouhou
Copy link
Collaborator

antouhou commented May 7, 2021

You do that like so: https://explorer.dash.org/insight-api/txs?block=00000000000000009891170e922835b046a48dcb738f6c2287f144ad7d65c249&pageNum=1
Replace pageNum with an index of page you need.

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

2 participants