Skip to content

@swapped/connect-sdk / react / useCoinbaseWithdrawalCooldown

Function: useCoinbaseWithdrawalCooldown()

useCoinbaseWithdrawalCooldown(): UseCoinbaseWithdrawalCooldownResult

Defined in: src/react/coinbase/hooks/useCoinbaseWithdrawalCooldown.ts:23

React hook for the cooldown after starting a Coinbase withdrawal.

Use this to disable "Withdraw" / "Start" and show remaining wait time. It does not apply to entering or retrying a 2FA code.

Updates from coinbase:cooldownChanged (emitted every second while active).

Returns

UseCoinbaseWithdrawalCooldownResult