# CommitBaseOptions

Defined in: [packages/synapse-sdk/src/types.ts:733](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-sdk/src/types.ts#L733)

Options shared by every form of [CommitOptions](/reference/filoz/synapse-sdk/synapse/type-aliases/commitoptions/)

## Properties

### onSubmitted?

> `optional` **onSubmitted?**: (`txHash`) => `void`

Defined in: [packages/synapse-sdk/src/types.ts:749](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-sdk/src/types.ts#L749)

Called when the commit transaction is submitted (before on-chain confirmation).
The hash is Curio's Location wait key and is not guaranteed to be the final
included on-chain hash if Curio replaces the send by fee. Prefer
[CommitResult.confirmedTxHash](/reference/filoz/synapse-sdk/synapse/interfaces/commitresult/#confirmedtxhash) after confirmation.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `txHash` | `` `0x${string}` `` |

#### Returns

`void`

***

### signal?

> `optional` **signal?**: [`AbortSignal`](https://developer.mozilla.org/docs/Web/API/AbortSignal)

Defined in: [packages/synapse-sdk/src/types.ts:742](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-sdk/src/types.ts#L742)

Optional AbortSignal to cancel the commit requests and the confirmation wait.

Aborting after [CommitOptions.onSubmitted](/reference/filoz/synapse-sdk/synapse/interfaces/commitbaseoptions/#onsubmitted) only stops waiting: the transaction
was already submitted and can still confirm on chain. When this context has no data
set yet, it does not learn the new data set ID, so a later commit() on the same
context creates another data set.