In the transactions endpoint e.g.:
Is there any way of knowing the total transactions count from the response? Is there any way of knowing the total pages so I can display that in the UI?
And for that matter, how do I know there is a next page. The
next link is always present even if there are no records in the next page.
I'm not sure I understand how the pagination works here.
EDIT: From the answer I got from @Johan Stén (in his comment):
When the link to your current page is the same as the link to the next page, you're at the end. I can't explain why it's like that, I'm just telling you how it is
And digging some more:
The concept is somehow still unclear.
In the link I provided there are 39 transaction total (using
limit 20 => 2 pages). but if I follow the
next, I'm at the 3rd page where there are no records at all.
So at page 2 I can't tell if there are no more pages...
Is this how it suppose to work? :/ should I read ahead the
next block just to see if there are no more records in the next page?