Skip to main content

index/interfaces/PageInfo.md

Cursor-based pagination info of a list, exactly as the launchpad backend returns it (data.pageInfo of every cursor-paginated route: launchpad-backend PageInfo, src/utils/cursor.util.ts). Pass endCursor as the next request's cursor.

Used across multiple SDK modules (bans, moderators, overseers, flags, comments, pools, trades, user token lists, etc).

Since​

6.4.0

Updated​

8.0.0 - Migrated to cursor-based pagination

Updated​

9.0.0 - The backend's own keys (endCursor, startCursor, hasPreviousPage); the SDK declared nextCursor / prevCursor / hasPrevPage while most lists returned the backend's

Properties​

PropertyTypeDescription
endCursor?string | nullCursor of the next page (the request's cursor); null when there is no next page
hasNextPagebooleanWhether more results exist after endCursor
hasPreviousPage?booleanWhether results exist before startCursor (the request carried a cursor)
startCursor?string | nullCursor of this page's first item; null for an empty page
totalCount?numberTotal count of items across all pages. The backend sends none: only results the SDK assembles from every page (fetchAll...) carry it.