Interface GetOnRampPaymentQuote

Returns a quote for an on-ramp payment; only for providers that supports quote retrieval. Request type for Tdjson#getOnRampPaymentQuote.

interface GetOnRampPaymentQuote {
    @type: "getOnRampPaymentQuote";
    base_currency: string;
    base_currency_amount: string;
    cryptocurrency: string;
    cryptocurrency_amount: string;
    payment_method_name: string;
    provider_id: string;
}

Properties

@type: "getOnRampPaymentQuote"
base_currency: string

ISO 4217 currency code of the currency that will be used for the purchase.

base_currency_amount: string

The amount of the base currency to spend; pass an empty string if the user selected cryptocurrency_amount.

cryptocurrency: string

The cryptocurrency that will be bought.

cryptocurrency_amount: string

The amount of the cryptocurrency to buy; pass an empty string if the user selected base_currency_amount.

payment_method_name: string

Name of the chosen payment method; pass an empty string if none.

provider_id: string

Unique identifier of the on-ramp provider.