waitForCreateDataSetAddPieces
waitForCreateDataSetAddPieces(
options):Promise<OutputType>
Defined in: packages/synapse-core/src/sp/wait-for-receipt.ts:275
Wait for a create data set and add pieces transaction on chain, following replace-by-fee replacements.
See waitForAddPieces. For recovery after a crash, call getCreateDataSetAndAddPiecesResult.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options |
OptionsType |
waitForCreateDataSetAddPieces.OptionsType |
Returns
Section titled “Returns”The outcome waitForCreateDataSetAddPieces.OutputType
Example
Section titled “Example”const result = await SP.createDataSetAndAddPieces(client, options)
const { dataSetId, pieceIds } = await SP.waitForCreateDataSetAddPieces({ client, ...result })