Skip to content

@swapped/connect-sdk / react / ExchangePayContextProvider

Function: ExchangePayContextProvider()

ExchangePayContextProvider(__namedParameters): Element

Defined in: src/react/exchange-pay/providers/ExchangePayContextProvider.tsx:51

Owns Exchange Pay deposit selection state and shared fetched data for React hooks.

Nest under SwappedConnectProvider. Internally composes focused providers (providers → currencies → currency → amount → selection).

Parameters

__namedParameters

ExchangePayContextProviderProps

Returns

Element

Example

tsx
<SwappedConnectProvider client={client}>
  <ExchangePayContextProvider>
    <DepositScreen />
  </ExchangePayContextProvider>
</SwappedConnectProvider>