Skip to content

@swapped/connect-sdk / react / useCoinbaseAmount

Function: useCoinbaseAmount()

useCoinbaseAmount(): UseCoinbaseAmountResult

Defined in: src/react/coinbase/hooks/useCoinbaseAmount.ts:122

React hook for the Coinbase withdrawal amount and limits.

Exposes linked crypto and fiat amount strings. Writing either side recomputes the other from the selected balance's exchange rate. Crypto remains canonical for validation and submission.

Must be used under CoinbaseProvider.

Returns

UseCoinbaseAmountResult