Skip to content

SynapseOptions

Defined in: packages/synapse-sdk/src/types.ts:90

Options for initializing the Synapse instance

account: `0x${string}` | Account

Defined in: packages/synapse-sdk/src/types.ts:110

Viem account


optional chain: Chain

Defined in: packages/synapse-sdk/src/types.ts:102

Filecoin chain


optional sessionKey: SessionKey<"Secp256k1">

Defined in: packages/synapse-sdk/src/types.ts:112


source: string | null

Defined in: packages/synapse-sdk/src/types.ts:122

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.


optional transport: Transport

Defined in: packages/synapse-sdk/src/types.ts:96

Viem transport

https://viem.sh/docs/clients/intro#transports


optional withCDN: boolean

Defined in: packages/synapse-sdk/src/types.ts:115

Whether to use CDN for retrievals (default: false)