waitForTerminateService
waitForTerminateService(
options):Promise<{fwssTerminated:true;serviceTerminationEpoch:bigint;terminationTxHash:""|`0x${string}`;txStatus:""|"pending"|"confirmed";txSuccess:boolean|null; }>
Defined in: packages/synapse-core/src/sp/terminate-service.ts:327
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. A 404 means no client-requested termination exists: either none was submitted, or the provider’s transaction failed and the request was discarded (WaitForTerminateServiceNotFoundError).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | waitForTerminateService.OptionsType |
Returns
Section titled “Returns”Promise<{ fwssTerminated: true; serviceTerminationEpoch: bigint; terminationTxHash: "" | `0x${string}`; txStatus: "" | "pending" | "confirmed"; txSuccess: boolean | null; }>
Status waitForTerminateService.OutputType