Documentation
    Preparing search index...
    • Retrieves a quote for swapping one coin to another.

      Parameters

      • fromCoinAddress: string

        The address of the coin to swap from.

      • toCoinAddress: string

        The address of the coin to swap to.

      • amountIn: string | number | bigint

        The amount of the fromCoin to swap. Can be a number, string, or bigint.

      • OptionalapiKey: string

        The API key for authentication.

      • swapOptions: SwapOptions = ...

        Optional. The options for the swap, including baseUrl, dexList, byAmountIn, and depth.

      Returns Promise<Quote>

      A promise that resolves with the quote for the swap.