UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

22 lines (21 loc) 765 B
import { type GetFopsResponse } from '@funkit/api-base'; export declare const SWAPPED_MIN_SELL_EUR = 7; /** * Hook to fetch available withdrawal (off-ramp) forms of payment from /fops. * Sends a CRYPTO_TO_FIAT rail config to get sell/payout methods. */ export declare const useWithdrawFops: (params: { sourceChainId: string; sourceTokenAddress: string; /** Best-effort max sell amount in EUR; capped to the user's source balance. */ defaultMaxAmount?: number; /** * Gate the fetch. Default true. Pass false to hold the request until the cap * is resolved, so the first /fops call never goes out uncapped. */ enabled?: boolean; }) => { data: GetFopsResponse | undefined; isLoading: boolean; isError: boolean; };