Skip to content

downloadPiece

function downloadPiece(options): Promise<ReturnType>;

Defined in: packages/synapse-core/src/sp.ts:874

Download a piece and verify from the PDP API.

GET /piece/{pieceCid}

ParameterTypeDescription
optionsOptionsTypedownloadPiece.OptionsType

Promise<ReturnType>

Data downloadPiece.ReturnType

Errors downloadPiece.ErrorType