Skip to content

createDataSetAndAddPieces

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

Defined in: packages/synapse-core/src/warm-storage/data-sets.ts:281

Create a data set and add pieces to it

ParameterTypeDescription
clientClient<Transport, Chain, Account>The client to use to create the data set.
optionsCreateDataSetAndAddPiecesOptionsThe options for the create data set.

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

The response from the create data set on PDP API.