Skip to content

waitForTerminateService

waitForTerminateService(options): Promise<{ fwssTerminated: true; serviceTerminationEpoch: bigint; terminationTxHash: "" | `0x${string}`; }>

Defined in: packages/synapse-core/src/sp/terminate-service.ts:308

Wait for the data set termination status.

GET /pdp/data-sets/{dataSetId}/terminate

Polls until the provider’s transaction confirms and the termination epoch is recorded.

ParameterTypeDescription
optionsOptionsTypewaitForTerminateService.OptionsType

Promise<{ fwssTerminated: true; serviceTerminationEpoch: bigint; terminationTxHash: "" | `0x${string}`; }>

Status waitForTerminateService.OutputType

Errors waitForTerminateService.ErrorType