Skip to content

@swapped/connect-sdk / react / UseExchangePaySupportedCurrenciesResult

Type Alias: UseExchangePaySupportedCurrenciesResult

UseExchangePaySupportedCurrenciesResult = object

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:20

Result of useExchangePaySupportedCurrencies.

Properties

currencies

currencies: ExchangePaySupportedCurrency[]

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:22

Receive currencies available for the selected provider.


error

error: Error | null

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:28

Last fetch error, or null.


isLoading

isLoading: boolean

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:24

Whether the initial currency list is loading.


isRefetching

isRefetching: boolean

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:26

Whether a background refetch is in progress.


refetch

refetch: () => Promise<void>

Defined in: src/react/exchange-pay/hooks/useExchangePaySupportedCurrencies.ts:30

Re-fetch supported currencies for the current provider.

Returns

Promise<void>