Skip to content

waitForPullPieces

waitForPullPieces(client, options): Promise<ReturnType>

Defined in: packages/synapse-core/src/sp/pull-pieces.ts:487

Wait for pull pieces completion.

Repeatedly calls the pull endpoint until all pieces are complete or any piece fails. Since the endpoint is idempotent, this effectively polls for status updates.

Parameter Type Description
client Client<Transport, Chain, Account> The viem client with account for signing.
options OptionsType waitForPullPieces.OptionsType

Promise<ReturnType>

The final status when complete or failed. waitForPullPieces.ReturnType

Errors waitForPullPieces.ErrorType