Skip to content

OptionsType

OptionsType = object

Defined in: packages/synapse-core/src/sp/add-pieces.ts:104

clientDataSetId: bigint

Defined in: packages/synapse-core/src/sp/add-pieces.ts:110

The ID of the client data set.


dataSetId: bigint

Defined in: packages/synapse-core/src/sp/add-pieces.ts:108

The ID of the data set.


optional extraData?: Hex

Defined in: packages/synapse-core/src/sp/add-pieces.ts:116

Pre-built signed extraData. When provided, skips internal EIP-712 signing.


optional nonce?: 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: PieceType[]

Defined in: packages/synapse-core/src/sp/add-pieces.ts:112

The pieces to add.


optional retryCount?: number

Defined in: packages/synapse-core/src/sp/add-pieces.ts:120

The number of retries. Defaults to 2.


optional retryDelay?: 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: string

Defined in: packages/synapse-core/src/sp/add-pieces.ts:106

The service URL of the PDP API.


optional signal?: AbortSignal

Defined in: packages/synapse-core/src/sp/add-pieces.ts:118

The signal to abort the request.