Skip to content

addPieces

function addPieces(options): Promise<{
statusUrl: string;
txHash: `0x${string}`;
}>;

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

Add pieces to a data set on the PDP API.

POST /pdp/data-sets/{dataSetId}/pieces

ParameterTypeDescription
optionsAddPiecesOptionsThe options for the add pieces.

Promise<{ statusUrl: string; txHash: `0x${string}`; }>

The response from the add pieces.