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.
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 once every piece is complete or failed. waitForPullPieces.ReturnType
Throws
Section titled “Throws”Errors waitForPullPieces.ErrorType