Skip to content

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.

Parameter Type Description
options OptionsType waitForCreateDataSetAddPieces.OptionsType

Promise<OutputType>

The outcome waitForCreateDataSetAddPieces.OutputType

const result = await SP.createDataSetAndAddPieces(client, options)
const { dataSetId, pieceIds } = await SP.waitForCreateDataSetAddPieces({ client, ...result })

Errors waitForCreateDataSetAddPieces.ErrorType