# TypedSwapperOptions\<T>

```
type TypedSwapperOptions<T> = object & SwapperOptions;
```

Defined in: [atomiq-sdk/src/swapper/SwapperFactory.ts:65](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L65)

Configuration options for creating a Swapper instance

## Type Declaration

| Name                       | Type                                                                                                                                                                                                                                                   | Description                                                                                                                                                                                                                                                                                                          | Defined in                                                                                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chains`                   | `GetAllOptions`<`T`>                                                                                                                                                                                                                                   | A dictionary with chain-specific settings, like RPC URLs and others                                                                                                                                                                                                                                                  | [atomiq-sdk/src/swapper/SwapperFactory.ts:69](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L69) |
| `chainStorageCtor()?`      | <`T`>(`storageName`) => [`IStorageManager`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/interfaces/IStorageManager.md)<`T`>                                                                                                          | A function callback to retrieve a specific named storage container for key-value persistency. If not present, the default browser Local Storage adapter is used. When you use the SDK in non-browser based environments you need to provide this callback such that the SDK is able to use a custom storage adapter. | [atomiq-sdk/src/swapper/SwapperFactory.ts:77](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L77) |
| `getPriceFn?`              | [`CustomPriceFunction`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/type-aliases/CustomPriceFunction.md)                                                                                                                             | Optional pricing function to use instead of default pricing APIs. See [CustomPriceFunction](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/type-aliases/CustomPriceFunction.md) for details.                                                                                                          | [atomiq-sdk/src/swapper/SwapperFactory.ts:86](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L86) |
| `mempoolApi?`              | \| [`MempoolApi`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/MempoolApi.md) \| [`MempoolBitcoinRpc`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/MempoolBitcoinRpc.md) \| `string` \| `string`\[] | Mempool API instance or URLs to use, if not provided the defaults will be used for the specified bitcoin network                                                                                                                                                                                                     | [atomiq-sdk/src/swapper/SwapperFactory.ts:90](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L90) |
| `messenger?`               | [`Messenger`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/interfaces/Messenger.md)                                                                                                                                                   | Data propagation messenger instance to use for broadcasting data to watchtowers. By default, a Nostr-based messenger is used.                                                                                                                                                                                        | [atomiq-sdk/src/swapper/SwapperFactory.ts:95](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L95) |
| `pricingFeeDifferencePPM?` | `bigint`                                                                                                                                                                                                                                               | Maximum allowed pricing difference between intermediary (LP) returned rate and current market rate. In parts-per-million, e.g. 2% is written as `20000`.                                                                                                                                                             | [atomiq-sdk/src/swapper/SwapperFactory.ts:82](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swapper/SwapperFactory.ts#L82) |

## Type Parameters

| Type Parameter                                                    |
| ----------------------------------------------------------------- |
| `T` *extends* readonly `ChainInitializer`<`any`, `any`, `any`>\[] |
