Skip to content

terminateServiceApiRequest

terminateServiceApiRequest(options): Promise<OutputType>

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

Request data set termination on the PDP API.

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

The provider queues the request and relays it on chain asynchronously; a 202 response carries no transaction hash. Poll waitForTerminateService for the hash and confirmation.

ParameterTypeDescription
optionsOptionsTypeterminateServiceApiRequest.OptionsType

Promise<OutputType>

Status URL terminateServiceApiRequest.OutputType

Errors terminateServiceApiRequest.ErrorType