Skip to main content
Polls getWithdrawStatus until the withdrawal reaches a settlement terminal state: sync work finished, or async legs are in cooldown or already claiming. Use this right after withdrawFunds when you need to know whether the call can return without waiting through a multi-day async cooldown. If the terminal status is async_cooldown or async_claiming, follow with waitForWithdrawComplete to wait until funds land on the EOA. If the terminal status is completed, the withdrawal is already done. Requires connectAccount() on the same ZyfaiSDK instance.

Signature

Parameters

Default polling matches waitForDepositPosition: Ethereum 4s / 180s, Base and Arbitrum 1s / 90s.

Terminal statuses

This helper returns when status is one of: Statuses such as accepted, redeeming, transferring, and async_requesting keep polling until one of the terminal states above or failed.
Treat async_claiming as terminal for this short poll so integrations that poll again after cooldown do not hit a spurious timeout while claim is already running.

Errors

Example