Skip to content

getPieces

function getPieces(client, options): Promise<{
hasMore: boolean;
pieces: object[];
}>;

Defined in: packages/synapse-core/src/warm-storage/pieces.ts:147

Get the pieces for a data set

Calls the PDP Verifier contract to get the pieces.

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the pieces.
optionsGetPiecesOptionsThe options for the get pieces.

Promise<{ hasMore: boolean; pieces: object[]; }>