parseGetActivePiecesByCursor
parseGetActivePiecesByCursor(
data):OutputType
Defined in: packages/synapse-core/src/pdp-verifier/get-active-pieces-by-cursor.ts:159
Parse raw getActivePiecesByCursor contract output into a normalized page.
Piece data is converted to PieceCID, piece IDs are paired by their
matching array index, and the contract’s hasMore flag is translated into
an opaque nextCursor. The cursor is omitted when the contract reports that
no more active pieces remain.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
data | readonly [readonly object[], readonly bigint[], boolean] | Raw contract output getActivePiecesByCursor.ContractOutputType |
Returns
Section titled “Returns”A normalized page of active pieces getActivePiecesByCursor.OutputType