Skip to content

@swapped/connect-sdk / react / useWalletTransferMinAmount

Function: useWalletTransferMinAmount()

useWalletTransferMinAmount(plan): UseWalletTransferMinAmountResult

Defined in: src/react/wallets/hooks/useWalletTransferMinAmount.ts:30

Minimum transferable amount in source token units for a resolved plan. Wraps WalletsTransfer.getMinAmount (swap/bridge destination mins are converted via exchange rates, then ceiled to display decimals; min.fiat is ceiled to cents so the shown fiat min is enterable).

Prefer min.crypto / min.fiat strings for labels — they already match the token display decimals.

Parameters

plan

WalletTransferPlan | null

Returns

UseWalletTransferMinAmountResult