Skip to content

waitForPullPieces

waitForPullPieces(client, options): Promise<ReturnType>

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

Wait for pull pieces completion.

Repeatedly calls the pull endpoint until every piece is complete or failed. 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 once every piece is complete or failed. waitForPullPieces.ReturnType

Errors waitForPullPieces.ErrorType