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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | PDPCreateDataSetAndAddPiecesOptions | The options for the create data set and add pieces to it on PDP API. |
Returns
Section titled “Returns”Promise<{
statusUrl: string;
txHash: `0x${string}`;
}>
The response from the create data set and add pieces to it on PDP API.