Skip to main content
Polls getDepositStatus until the deposit is credited to the Safe balance. Resolves when balanceCredited === true and status !== "recovered_to_eoa". The returned record may already be position_pending or positioned if allocation started in the same poll window. Rejects if custody handover fails (recovered_to_eoa), polling errors, or the timeout elapses. To wait for rebalance into a protocol position after credit, call waitForDepositPosition. Requires connectAccount() on the same ZyfaiSDK instance.

Signature

Parameters

Default polling by chain: These are normal user-facing completion windows. Pass a larger timeoutMs only when an integration explicitly wants to wait through the backend recovery path.

Returns

The final DepositLifecycleResponse when balanceCredited === true and the deposit was not recovered to the EOA. status may be credited, position_pending, or positioned.

Errors

Example

After logDeposit

With custom timeout