Skip to content

TerminateServiceOptions

Defined in: packages/synapse-sdk/src/types.ts:664

Options for terminating a data set service

dataSetId: bigint

Defined in: packages/synapse-sdk/src/types.ts:666

The ID of the data set to terminate


optional onSubmitted?: (txHash) => void

Defined in: packages/synapse-sdk/src/types.ts:679

Called when the termination transaction is submitted (before on-chain confirmation). For provider-relayed termination this is Curio’s wait-key hash and may differ from the included on-chain hash after replace-by-fee. Prefer TerminateServiceResult.confirmedTxHash after confirmation.

ParameterType
txHash`0x${string}`

void


optional skipProvider?: boolean

Defined in: packages/synapse-sdk/src/types.ts:672

Submit the termination transaction directly from the signer’s wallet instead of relaying through the service provider. Needs no provider cooperation, but the service runs to the end of the lockup period.