# SynapseFromClientOptions

Defined in: [packages/synapse-sdk/src/types.ts:152](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L152)

## Properties

### client

> **client**: `Client`\<`Transport`, `Chain`, `Account`\>

Defined in: [packages/synapse-sdk/src/types.ts:158](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L158)

Viem wallet client

#### See

https://viem.sh/docs/clients/wallet#optional-hoist-the-account

***

### pieceBatching?

> `optional` **pieceBatching?**: `false` \| [`PieceBatchingOptions`](/reference/filoz/synapse-sdk/synapse/interfaces/piecebatchingoptions/)

Defined in: [packages/synapse-sdk/src/types.ts:172](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L172)

Automatic addPieces batching. Enabled by default; pass `false` to disable.

***

### readClient?

> `optional` **readClient?**: `Client`\<`Transport`, `Chain`\>

Defined in: [packages/synapse-sdk/src/types.ts:163](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L163)

Viem public client for read operations

***

### sessionClient?

> `optional` **sessionClient?**: `Client`\<`Transport`, `Chain`, \{ `address`: `` `0x${string}` ``; `keyType`: `"Secp256k1"`; `nonceManager?`: `NonceManager`; `publicKey`: `` `0x${string}` ``; `rootAddress`: `` `0x${string}` ``; `sign`: (`parameters`) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`` `0x${string}` ``\>; `signAuthorization`: (`parameters`) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`SignAuthorizationReturnType`\>; `signMessage`: (`__namedParameters`) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`` `0x${string}` ``\>; `signTransaction`: \<`serializer`, `transaction`\>(`transaction`, `options?`) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`` `0x${string}` ``\>; `signTypedData`: \<`typedData`, `primaryType`\>(`parameters`) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`` `0x${string}` ``\>; `source`: `"sessionKey"`; `type`: `"local"`; \}\>

Defined in: [packages/synapse-sdk/src/types.ts:166](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L166)

***

### source

> **source**: `string` \| `null`

Defined in: [packages/synapse-sdk/src/types.ts:179](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L179)

Application identifier for namespace isolation. When set to a non-empty string, datasets
are tagged with this value and only datasets with a matching source are reused. Set to
`null` to explicitly opt out.

***

### withCDN?

> `optional` **withCDN?**: `boolean`

Defined in: [packages/synapse-sdk/src/types.ts:169](https://github.com/FilOzone/synapse-sdk/blob/365969fc762f19d23aad6dc609a529c10b5e639f/packages/synapse-sdk/src/types.ts#L169)

Whether to use CDN for retrievals (default: false)