Skip to content

SynapseOptions

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

Options for initializing the Synapse instance

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

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

Viem account


optional chain?: Chain

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

Filecoin chain


optional sessionKey?: SessionKey<"Secp256k1">

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


source: string | null

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

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:97

Viem transport

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


optional withCDN?: boolean

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

Whether to use CDN for retrievals (default: false)