PullOptions
Defined in: packages/synapse-sdk/src/types.ts:624
Options for pulling pieces from a source provider
Properties
Section titled “Properties”dedupe?
Section titled “dedupe?”
optionaldedupe?:boolean
Defined in: packages/synapse-sdk/src/types.ts:643
Remove pieces whose PieceCID already appeared earlier in pieces before signing and pulling.
The first one wins. Removed pieces still get a result that shares the kept piece’s status,
and are listed in the result’s dropped. A pre-built extraData must be signed over the
deduped pieces. Defaults to false.
extraData?
Section titled “extraData?”
optionalextraData?:`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)
onProgress?
Section titled “onProgress?”
optionalonProgress?: (pieceCid,status) =>void
Defined in: packages/synapse-sdk/src/types.ts:632
Pull progress callback
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pieceCid |
PieceCID |
status |
PullStatus |
Returns
Section titled “Returns”void
pieces
Section titled “pieces”pieces:
PieceCID[]
Defined in: packages/synapse-sdk/src/types.ts:626
Pieces to pull
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/synapse-sdk/src/types.ts:630
Optional AbortSignal
timeout?
Section titled “timeout?”
optionaltimeout?: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.