Skip to main content
Fetch the current lifecycle state for a deposit registered via logDeposit or sendDeposit. The SDK calls GET /api/v1/users/deposits/{depositId}/v2, which includes allocation fields. The legacy GET /api/v1/users/deposits/{depositId} route returns handover and credit only. Use this for one-off checks. To await credit after handover_pending, use waitForDepositCredit. To await allocation after credit, use waitForDepositPosition. Requires connectAccount() on the same ZyfaiSDK instance.

Signature

Parameters

Returns

Current deposit lifecycle state.

Return Type

Treat a deposit as spendable on the Safe when balanceCredited === true and status !== "recovered_to_eoa". handover_pending means the transfer is recorded but not yet credited. position_pending / positioned mean credit completed and allocation may still be in progress or done.

Example