Skip to content

PullToNewDataSetOptions

PullToNewDataSetOptions = BasePullPiecesOptions & object

Defined in: packages/synapse-core/src/sp/pull-pieces.ts:262

Options for creating a new data set and pulling pieces into it.

optional cdn?: boolean

Whether the data set should use CDN.

optional clientDataSetId?: bigint

The client data set ID. Must be unique for each data set. If not provided, a random value is generated.

optional dataSetId?: 0n

Omit or set to 0n to create a new data set.

optional metadata?: MetadataObject

The metadata for the data set.

payee: Address

The address that will receive payments (service provider). Required for new data sets.

optional payer?: Address

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.