# OptionsType

> **OptionsType** = [`OptionsType`](/reference/filoz/synapse-core/sp/namespaces/pullpieces/type-aliases/optionstype/) & `object`

Defined in: [packages/synapse-core/src/sp/pull-pieces.ts:458](https://github.com/FilOzone/synapse-sdk/blob/dfc87ee376667f790a15f27568f6c5de7afccd19/packages/synapse-core/src/sp/pull-pieces.ts#L458)

Options for waiting for pull pieces completion.

## Type Declaration

### onStatus?

> `optional` **onStatus?**: (`response`) => `void`

Callback invoked on each poll with current status.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `response` | [`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/pullpieces/type-aliases/returntype/) |

#### Returns

`void`

### pollInterval?

> `optional` **pollInterval?**: `number`

The poll interval in milliseconds. Defaults to [RETRY\_CONSTANTS.POLL\_INTERVAL](/reference/filoz/synapse-core/utils/variables/retry_constants/#poll_interval).

### retryCount?

> `optional` **retryCount?**: `number`

The number of retries. Defaults to 2.

### retryDelay?

> `optional` **retryDelay?**: `number`

The delay with exponential backoff between retries in milliseconds. Defaults to [RETRY\_CONSTANTS.RETRY\_DELAY](/reference/filoz/synapse-core/utils/variables/retry_constants/#retry_delay).

### timeout?

> `optional` **timeout?**: `number`

Total time in milliseconds to wait for the pull to finish. Defaults to [RETRY\_CONSTANTS.PULL\_TIMEOUT](/reference/filoz/synapse-core/utils/variables/retry_constants/#pull_timeout) (2 hours).