Skip to content

waitForPullStatus

waitForPullStatus(client, options): Promise<PullResponse>

Defined in: packages/synapse-core/src/warm-storage/pull.ts:234

Wait for pull 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.

ParameterTypeDescription
clientClient<Transport, Chain, Account>The viem client with account for signing.
optionsOptionsTypewaitForPullStatus.OptionsType

Promise<PullResponse>

The final status when complete or failed. waitForPullStatus.ReturnType

Errors waitForPullStatus.ErrorType