findPiece
function findPiece(options): Promise<PieceLink>;Defined in: packages/synapse-core/src/sp.ts:619
Find a piece on the PDP API.
GET /pdp/piece?pieceCid={pieceCid}
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | findPiece.OptionsType |
Returns
Section titled “Returns”Promise<PieceLink>
Piece CID findPiece.ReturnType
Throws
Section titled “Throws”Errors findPiece.ErrorType