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}
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | downloadPiece.OptionsType |
Returns
Section titled “Returns”Throws
Section titled “Throws”Errors downloadPiece.ErrorType