# TerminateServiceResult

Defined in: [packages/synapse-sdk/src/types.ts:685](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-sdk/src/types.ts#L685)

Result of a data set service termination

## Properties

### confirmedTxHash?

> `optional` **confirmedTxHash?**: `` `0x${string}` ``

Defined in: [packages/synapse-sdk/src/types.ts:699](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-sdk/src/types.ts#L699)

Hash included on chain once confirmed. Differs from [txHash](/reference/filoz/synapse-sdk/synapse/interfaces/terminateserviceresult/#txhash) when
Curio replaced the original send by fee. Omitted when the SP does not
report it (older Curio) or when no termination tx was sent.
For explorers and receipt lookups use `confirmedTxHash ?? txHash`.

***

### dataSetId

> **dataSetId**: `bigint`

Defined in: [packages/synapse-sdk/src/types.ts:701](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-sdk/src/types.ts#L701)

The data set ID

***

### endEpoch

> **endEpoch**: `bigint`

Defined in: [packages/synapse-sdk/src/types.ts:707](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-sdk/src/types.ts#L707)

Epoch at which the PDP payment rail ends and the service stops.
Approximately the current epoch for provider-relayed termination,
the end of the lockup period for on-chain termination.

***

### txHash?

> `optional` **txHash?**: `` `0x${string}` ``

Defined in: [packages/synapse-sdk/src/types.ts:692](https://github.com/FilOzone/synapse-sdk/blob/aaa98045b003ec23f4318ba9a3032a434e5a20c9/packages/synapse-sdk/src/types.ts#L692)

Original wait-key transaction hash. Undefined when the service was already
terminated without a provider transaction. May differ from the included
on-chain hash after replace-by-fee.
Keep using this for Curio status polling / resume URLs.