Skip to content

pullPieces

pullPieces(options): Promise<PullResponse>

Defined in: packages/synapse-core/src/sp.ts:1003

Initiate a piece pull request or get status of an existing one.

POST /pdp/piece/pull

This endpoint is idempotent - calling with the same extraData returns the status of the existing pull rather than creating duplicates. This allows safe retries and status polling using the same request.

ParameterTypeDescription
optionsOptionsTypepullPieces.OptionsType

Promise<PullResponse>

The current status of the pull operation. pullPieces.ReturnType

Errors pullPieces.ErrorType