---
title: "To get the best priced quote"
method: GET
path: "/v1/sol/quote"
tags: ["quote"]
---

# To get the best priced quote

`GET /v1/sol/quote`

To get the best priced quote, and retrieved quote will be used in `POST /v1/swap`.

## Query parameters

- `chainId` string
- `inputToken` string, required
- `outputToken` string, required
- `amount` integer, required
- `dexes` 'bluefin_spot' | 'cetus_clmm'
- `excludeDexes` 'bluefin_spot' | 'cetus_clmm'
- `commissionDirection` boolean
- `commissionRate` integer
- `userAddress` string

## Response `200`

Successful response, to be used in `/v1/swap`

- union
  - QuoteResponse
    - `code` integer — Response code.
    - `msg` string
    - `data` object
      - `chainId` string — Chain ID for Sui
      - `inputToken` string — Input token type identifier in Sui format (PackageId::ModuleName::TypeName). 0x2::sui::SUI represents native SUI
      - `inputAmount` string — The exact input amount that will be swapped, accounting for token decimals
      - `outputToken` string — Output token type identifier in Sui format (PackageId::ModuleName::TypeName)
      - `outputAmount` string — The estimated output amount user will receive, accounting for token decimals
      - `priceImpactPct` string — Price impact of this swap
      - `midPrice` string — price between input and output tokens
      - `routePlans` RoutePlan[] — Array of route plans showing the path
        - `amount` string — The amount of input token allocated to this specific route, accounting for token decimals
        - `router` string — The swap path in format '{fromToken} - {toToken}'. Shows the start and end token types for this route
        - `subRouters` SubRouter[] — Array of sub-routes that make up this route plan. Each sub-route represents a hop in the multi-hop swap path
          - `fromToken` string — Source token type identifier in Sui format for this hop
          - `toToken` string — Destination token type identifier in Sui format for this hop
          - `dexes` object[] — Array of DEX pools used for this hop.
            - `dex` string — Name of the DEX protocol (e.g., bluefin_spot, cetus_clmm)
            - `poolAddress` string — Liquidity pool object ID on Sui blockchain
            - `weight` integer — Weight percentage allocated to this DEX (0-10000, where 10000 = 100%). Used for split routing across multiple pools
            - `extraInfo` string — Additional metadata for the DEX in JSON format. Content varies by DEX type
      - `blockNumber` integer — block number at which the pool state is
      - `estimatedGas` integer — Estimated gas units required for executing transaction
  - PathNotFound — path not found
    - `code` integer
    - `msg` string

## Other responses

- `400` — Invalid input
- `500` — Service internal error

---

[API](https://skmtc.dev/liquidmesh/apis/liquid-mesh-quotation-api.md) · [All operations](https://skmtc.dev/liquidmesh/apis/liquid-mesh-quotation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liquidmesh/liquid-mesh-quotation-api/revisions/d84bacd7b13b/schema)
