uploadPiece
function uploadPiece(options): Promise<{ pieceCid: PieceLink; size: number;}>;Defined in: packages/synapse-core/src/sp.ts:316
Upload a piece to the PDP API.
POST /pdp/piece
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | UploadPieceOptions | The options for the upload piece. |
Returns
Section titled “Returns”Promise<{
pieceCid: PieceLink;
size: number;
}>
The response from the upload piece.