Skip to content

PullBaseOptions

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

Options shared by every form of PullOptions

from: PullSource

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

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


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

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

Pull progress callback

Parameter Type
pieceCid PieceCID
status PullStatus

void


optional signal?: AbortSignal

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

Optional AbortSignal


optional timeout?: number

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

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