OptionsType
OptionsType =
object
Defined in: packages/synapse-core/src/sp/add-pieces.ts:104
Properties
Section titled “Properties”clientDataSetId
Section titled “clientDataSetId”clientDataSetId:
bigint
Defined in: packages/synapse-core/src/sp/add-pieces.ts:110
The ID of the client data set.
dataSetId
Section titled “dataSetId”dataSetId:
bigint
Defined in: packages/synapse-core/src/sp/add-pieces.ts:108
The ID of the data set.
extraData?
Section titled “extraData?”
optionalextraData?:Hex
Defined in: packages/synapse-core/src/sp/add-pieces.ts:116
Pre-built signed extraData. When provided, skips internal EIP-712 signing.
nonce?
Section titled “nonce?”
optionalnonce?:bigint
Defined in: packages/synapse-core/src/sp/add-pieces.ts:114
Optional nonce for the add pieces signature. Ignored when extraData is provided.
pieces
Section titled “pieces”pieces:
PieceType[]
Defined in: packages/synapse-core/src/sp/add-pieces.ts:112
The pieces to add.
retryCount?
Section titled “retryCount?”
optionalretryCount?:number
Defined in: packages/synapse-core/src/sp/add-pieces.ts:120
The number of retries. Defaults to 2.
retryDelay?
Section titled “retryDelay?”
optionalretryDelay?:number
Defined in: packages/synapse-core/src/sp/add-pieces.ts:122
The delay with exponential backoff between retries in milliseconds. Defaults to RETRY_CONSTANTS.RETRY_DELAY.
serviceURL
Section titled “serviceURL”serviceURL:
string
Defined in: packages/synapse-core/src/sp/add-pieces.ts:106
The service URL of the PDP API.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/synapse-core/src/sp/add-pieces.ts:118
The signal to abort the request.