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.
Type Declaration
Section titled “Type Declaration”
optionalcdn?:boolean
Whether the data set should use CDN.
clientDataSetId?
Section titled “clientDataSetId?”
optionalclientDataSetId?:bigint
The client data set ID. Must be unique for each data set. If not provided, a random value is generated.
dataSetId?
Section titled “dataSetId?”
optionaldataSetId?:0n
Omit or set to 0n to create a new data set.
metadata?
Section titled “metadata?”
optionalmetadata?:MetadataObject
The metadata for the data set.
payee:
Address
The address that will receive payments (service provider). Required for new data sets.
payer?
Section titled “payer?”
optionalpayer?: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.