next. Pass it back unchanged as cursor; stop when next is null.
The number of rows does not tell you where a list ends. A page can hold fewer rows than limit, even none, and still carry next, and a Solana trades page may hold more, when one transaction alone has more rows than limit. Keep walking until next is null.
Which routes page, and how
Other lists (search, trending, launchpad boards, traders, top wallets) are one page: raise
limit up to its maximum. A limit above the maximum is capped, not refused.
Do not
- Decode, build or alter a
cursor. It is opaque and may change shape; URL-encode it as you would any query value. A cursor the server can no longer honour answers 400: start again from the first page. If a cursor keeps failing while the first page loads, start again from the first page too. - Stop on a short page, or drop the cursor on a 503. A Solana trades, wallet-trades or candles request may answer
503withRetry-After: 2: send the same request again after it, with the samecursor(orto). - Page a live view. A stream’s
snapshotalready holds the latest page, and every change after it arrives as a frame; read older pages from REST only when the user scrolls back.