Skip to content

OptionsType

OptionsType = object

Defined in: packages/synapse-core/src/sp/create-dataset.ts:102

cdn: boolean

Defined in: packages/synapse-core/src/sp/create-dataset.ts:104

Whether the data set should use CDN.


optional clientDataSetId?: bigint

Defined in: packages/synapse-core/src/sp/create-dataset.ts:117

The client data set id (nonce) to use for the signature. Must be unique for each data set.


optional metadata?: MetadataObject

Defined in: packages/synapse-core/src/sp/create-dataset.ts:115

The metadata for the data set.


payee: Address

Defined in: packages/synapse-core/src/sp/create-dataset.ts:106

The address that will receive payments (service provider).


optional payer?: Address

Defined in: packages/synapse-core/src/sp/create-dataset.ts:113

The address that will pay for the storage (client). If not provided, the default is the root address for a session key client, otherwise the client address.


optional recordKeeper?: Address

Defined in: packages/synapse-core/src/sp/create-dataset.ts:119

The address of the record keeper to use for the signature. If not provided, the default is the Warm Storage contract address.


optional retryCount?: number

Defined in: packages/synapse-core/src/sp/create-dataset.ts:123

The number of retries. Defaults to 2.


optional retryDelay?: number

Defined in: packages/synapse-core/src/sp/create-dataset.ts:125

The delay with exponential backoff between retries in milliseconds. Defaults to RETRY_CONSTANTS.RETRY_DELAY.


serviceURL: string

Defined in: packages/synapse-core/src/sp/create-dataset.ts:108

The service URL of the PDP API.


optional signal?: AbortSignal

Defined in: packages/synapse-core/src/sp/create-dataset.ts:121

The signal to abort the request.