Skip to content

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.

ParameterTypeDescription
datareadonly [readonly object[], readonly bigint[], boolean]Raw contract output getActivePiecesByCursor.ContractOutputType

OutputType

A normalized page of active pieces getActivePiecesByCursor.OutputType