Affected Endpoints
GET /contractsGET /classesGET /classes/{classHash}/contracts
Compatibility Note
This change is not backward-compatible for clients that paged withp or read
lastPage.
New Behavior
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. - A cursor marks a fixed point in the list, so new blocks don’t shift your pages, and each page loads just as fast however far you go.
- Malformed cursors return
400.
Additional Changes
- Window filters on
GET /contractsandGET /classes:blockStart/blockEndortimestampFrom/timestampTo(unix seconds) bound the list to an inclusive deployment / declaration window. The two window kinds are mutually exclusive; inverted windows return400. An empty window value, such asblockEnd=, is ignored, as if the parameter were not sent. - Type filter validation on
GET /contracts: unrecognizedtypevalues return400instead of silently returning the unfiltered list. - Capped activity counts on
GET /classes/{classHash}/contracts:txnCountandaccountCallCountstop counting at 1000 and return"1000+"above that, where they used to return the exact count. GET /classeslist items includeblockNumber(the declaration block).