Skip to main content
type FetchBuyQuote = (params: {
  destinationAddress: string;
  purchaseCurrency: string;
  purchaseNetwork: string;
  paymentAmount: string;
  paymentCurrency: string;
  paymentMethod: string;
  country: string;
  subdivision?: string;
}) => Promise<OnrampBuyQuoteResponse>;
Get Buy Quote function (used for fetching the exchange rate and building the buy url)

Parameters

ParameterType
params{ destinationAddress: string; purchaseCurrency: string; purchaseNetwork: string; paymentAmount: string; paymentCurrency: string; paymentMethod: string; country: string; subdivision?: string; }
params.destinationAddressstring
params.purchaseCurrencystring
params.purchaseNetworkstring
params.paymentAmountstring
params.paymentCurrencystring
params.paymentMethodstring
params.countrystring
params.subdivision?string

Returns

Promise<OnrampBuyQuoteResponse>
I