CDP Frontend SDK
    Preparing search index...

    Type Alias unstable_FetchBuyQuote

    unstable_FetchBuyQuote: (
        params: {
            destinationAddress: string;
            purchaseCurrency: string;
            purchaseNetwork: string;
            paymentAmount: string;
            paymentCurrency: string;
            paymentMethod: string;
            country: string;
            subdivision?: string;
        },
    ) => Promise<unstable_OnrampBuyQuoteResponse>

    Get Buy Quote function (used for fetching the exchange rate and building the buy url)

    Type declaration

      • (
            params: {
                destinationAddress: string;
                purchaseCurrency: string;
                purchaseNetwork: string;
                paymentAmount: string;
                paymentCurrency: string;
                paymentMethod: string;
                country: string;
                subdivision?: string;
            },
        ): Promise<unstable_OnrampBuyQuoteResponse>
      • Parameters

        • params: {
              destinationAddress: string;
              purchaseCurrency: string;
              purchaseNetwork: string;
              paymentAmount: string;
              paymentCurrency: string;
              paymentMethod: string;
              country: string;
              subdivision?: string;
          }

        Returns Promise<unstable_OnrampBuyQuoteResponse>