Skip to content

PullOptions

Defined in: packages/synapse-sdk/src/types.ts:624

Options for pulling pieces from a source provider

optional extraData?: `0x${string}`

Defined in: packages/synapse-sdk/src/types.ts:634

Pre-built signed extraData (avoids double wallet prompts)


from: PullSource

Defined in: packages/synapse-sdk/src/types.ts:628

Source provider to pull from (URL or context with getPieceUrl)


optional onProgress?: (pieceCid, status) => void

Defined in: packages/synapse-sdk/src/types.ts:632

Pull progress callback

ParameterType
pieceCidPieceCID
statusPullStatus

void


pieces: PieceCID[]

Defined in: packages/synapse-sdk/src/types.ts:626

Pieces to pull


optional signal?: AbortSignal

Defined in: packages/synapse-sdk/src/types.ts:630

Optional AbortSignal


optional timeout?: number

Defined in: packages/synapse-sdk/src/types.ts:636

Total time in milliseconds to wait for the pull to finish. Defaults to 2 hours.