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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | AddPiecesOptions | The options for the add pieces. |
Returns
Section titled “Returns”Promise<{
statusUrl: string;
txHash: `0x${string}`;
}>
The response from the add pieces.