waitForPullPieces
waitForPullPieces(
client,options):Promise<ReturnType>
Defined in: packages/synapse-core/src/sp/pull-pieces.ts:423
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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain, Account> | The viem client with account for signing. |
options | OptionsType | waitForPullPieces.OptionsType |
Returns
Section titled “Returns”The final status when complete or failed. waitForPullPieces.ReturnType
Throws
Section titled “Throws”Errors waitForPullPieces.ErrorType