Skip to content

createDataSetAndAddPieces

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

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

Create a data set and add pieces to it on PDP API

POST /pdp/data-sets/create-and-add

ParameterTypeDescription
optionsPDPCreateDataSetAndAddPiecesOptionsThe options for the create data set and add pieces to it on PDP API.

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

The response from the create data set and add pieces to it on PDP API.