Affected Endpoints
On
GET /txns, to takes precedence over block: a request with both returns the
cursor-paginated list for to and ignores block.
Compatibility Note
This change is not backward-compatible for clients that page the unbounded lists with a page number or readlastPage.
The page-numbered lists in the right-hand column keep numbered pages: they accept page and
pageSize, the spellings of p and ps introduced by
Consistent Naming Across the Public API, and still
return lastPage.
New Behavior
Cursor-paginated responses carry server-issued cursors:- Pass a previous response’s
nextCursor/prevCursorback verbatim ascursorto page; omit it for the first page. AnullnextCursormeans the end of the list. - Treat cursors as opaque strings. Their format differs per endpoint and may change.
- Cursors pin a position in the chain, so pages stay stable while new blocks land, and response time stays constant however deep you paginate.
pageSizesets the page size (10, 25, 50, or 100).- Malformed cursors return
400. Combiningcursorwith a page-numbered filter (block,rejected,blockHash,txnHash) returns400.
Window Filters
The cursor-paginated lists, andGET /blocks, accept an inclusive window:
- Timestamps are unix seconds. On
/txns,/meta-txns,/events, and/blocksthe API converts them to the matching block range./messagesfilters on the message time directly. - Window values must be whole numbers from
0to2147483647. Other values return400. - An empty window value, such as
blockEnd=, is ignored, as if the parameter were not sent. - A block window and a timestamp window cannot be combined in one request.
- Windows combine with
cursorand the list’s other filters, but not with the page-numbered filters listed above. - Filter a single block with
blockStartequal toblockEnd. - Inverted windows (start after end) return
400.
Migrating
- For the cursor-paginated lists, stop sending a page number and stop reading
lastPage. - Request the first page without
cursor, then follownextCursoruntil it isnull. - To show “previous page”, send the
prevCursorfrom the current response. - To fetch a specific range, use a block or timestamp window instead of jumping to a page number.