@reown/appkit-pay npm package.pay. This function receives two parameters.
baseSepoliaETH.
Upon selecting this test exchange, you will be redirected to a result modal where you can choose between two paths:
This setup allows you to safely verify both positive and negative exchange flows in a controlled environment.
useAvailableExchanges(options?: { isFetchOnInit?: boolean } & GetExchangesParams): UseAvailableExchangesReturn
options: Control initial fetch behavior.returns: { data, isLoading, error, fetch }type GetExchangesParams= { page?: number asset?: string amount?: number | string network?: CaipNetworkId }
usePayUrlActions(): { getUrl, openUrl }
getUrl(exchangeId, params): Promise<PayUrlResponse>openUrl(exchangeId, params, openInNewTab?): Promise<PayUrlResponse> (Returns { url, sessionId })useExchangeBuyStatus(params: UseExchangeBuyStatusParameters): UseExchangeBuyStatusReturn
params: { exchangeId, sessionId, pollingInterval?, isEnabled?, onSuccess?, onError? }returns: { data, isLoading, error, refetch }