• QuoteApi - factory interface

    Parameters

    • Optional configuration: Configuration
    • Optional basePath: string
    • Optional axios: AxiosInstance

    Returns {
        quotesaverdeposit(height?, asset?, amount?, options?): AxiosPromise<QuoteSaverDepositResponse>;
        quotesaverwithdraw(height?, asset?, address?, withdrawBps?, options?): AxiosPromise<QuoteSaverWithdrawResponse>;
        quoteswap(height?, fromAsset?, toAsset?, amount?, destination?, toleranceBps?, affiliateBps?, affiliate?, options?): AxiosPromise<QuoteSwapResponse>;
    }

    • quotesaverdeposit:function
    • quotesaverwithdraw:function
    • quoteswap:function
      • Provide a quote estimate for the provided swap.

        Parameters

        • Optional height: number

          optional block height, defaults to current tip

        • Optional fromAsset: string

          the source asset

        • Optional toAsset: string

          the target asset

        • Optional amount: number

          the source asset amount in 1e8 decimals

        • Optional destination: string

          the destination address, required to generate memo

        • Optional toleranceBps: number

          the maximum basis points from the current feeless swap price to set the limit in the generated memo

        • Optional affiliateBps: number

          the affiliate fee in basis points

        • Optional affiliate: string

          the affiliate (address or mayaname)

        • Optional options: any

          Override http request option.

        Returns AxiosPromise<QuoteSwapResponse>

        Throws

    Export

Generated using TypeDoc