> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monei.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Get apiv1solana exchangequotetoken to sol



## OpenAPI

````yaml /openapi.json get /api/v1/solana-exchange/quote/token-to-sol
openapi: 3.0.0
info:
  title: Mr Monei API Gateway
  description: External API for partners using API Key authentication
  version: '1.0'
  contact: {}
servers:
  - url: https://api.dev.monei.cc
    description: Dev Server
  - url: https://api.monei.cc
    description: Live Server
security: []
tags: []
paths:
  /api/v1/solana-exchange/quote/token-to-sol:
    get:
      tags:
        - Solana Exchange
      operationId: SolanaExchangeController_getTokenToSolQuote
      parameters:
        - name: inputMint
          required: true
          in: query
          schema:
            type: string
        - name: amount
          required: true
          in: query
          schema:
            type: number
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SwapQuoteResponseDto'
      security:
        - bearer: []
        - api-key: []
components:
  schemas:
    SwapQuoteResponseDto:
      type: object
      properties:
        statusCode:
          type: number
        message:
          type: string
        data:
          $ref: '#/components/schemas/SwapQuoteDto'
        errors:
          type: object
      required:
        - statusCode
        - message
        - data
        - errors
    SwapQuoteDto:
      type: object
      properties:
        quoteId:
          type: string
          description: Quote ID for execution
        swapMode:
          type: string
          description: Swap mode
          enum:
            - ExactIn
            - ExactOut
        fromToken:
          $ref: '#/components/schemas/SwapTokenInfoDto'
        toToken:
          $ref: '#/components/schemas/SwapTokenInfoDto'
        amounts:
          $ref: '#/components/schemas/SwapAmountsDto'
        rates:
          $ref: '#/components/schemas/SwapRateDto'
        fees:
          $ref: '#/components/schemas/SwapFeesDto'
        route:
          $ref: '#/components/schemas/SwapRouteDto'
        priceImpact:
          type: string
          description: Price impact percentage (absolute value)
          example: '0.0047'
        usdValues:
          type: object
          description: USD values
          example:
            inputValue: 1.36
            outputValue: 1.36
            netValue: 1.35
        slippageTolerance:
          type: string
          description: Slippage tolerance percentage
          example: '0.5'
        expiryTimestamp:
          type: number
          description: Quote expiry timestamp (Unix)
          example: 1698765432
        expiresIn:
          type: number
          description: Time until expiry in seconds
          example: 300
        estimatedSwapTime:
          type: number
          description: Estimated swap time (seconds)
          example: 30
        network:
          type: string
          description: Chain/network
          example: Solana Mainnet
        executable:
          type: boolean
          description: Whether swap can be executed
          example: true
        warnings:
          description: Any warnings about the quote
          example:
            - Low liquidity
            - High price impact
          type: array
          items:
            type: string
        rawQuote:
          type: object
          description: Raw Jupiter quote (optional)
      required:
        - quoteId
        - swapMode
        - fromToken
        - toToken
        - amounts
        - rates
        - fees
        - route
        - priceImpact
        - usdValues
        - slippageTolerance
        - expiryTimestamp
        - expiresIn
        - estimatedSwapTime
        - network
        - executable
        - warnings
    SwapTokenInfoDto:
      type: object
      properties:
        address:
          type: string
          description: Token mint address
        symbol:
          type: string
          description: Token symbol
          example: SOL
        decimals:
          type: number
          description: Token decimals
          example: 9
        name:
          type: string
          description: Token name
          example: Solana
        logoUri:
          type: string
          description: Logo URL
      required:
        - address
        - symbol
        - decimals
        - name
    SwapAmountsDto:
      type: object
      properties:
        inputAmount:
          type: string
          description: Input amount (human-readable)
          example: '0.01'
        outputAmount:
          type: string
          description: Output amount (human-readable)
          example: '1.36'
        minOutputAmount:
          type: string
          description: Minimum output amount (with slippage, human-readable)
          example: '1.35'
        inputAmountRaw:
          type: string
          description: Input amount in token units (raw)
          example: '10000000'
        outputAmountRaw:
          type: string
          description: Output amount in token units (raw)
          example: '1359503'
      required:
        - inputAmount
        - outputAmount
        - minOutputAmount
        - inputAmountRaw
        - outputAmountRaw
    SwapRateDto:
      type: object
      properties:
        rate:
          type: string
          description: Exchange rate (1 input token = X output tokens)
          example: '135.95'
        reverseRate:
          type: string
          description: Reverse exchange rate (1 output token = Y input tokens)
          example: '0.00736'
        usdRate:
          type: string
          description: USD rate (1 input token = $X)
          example: '135.95'
      required:
        - rate
        - reverseRate
        - usdRate
    SwapFeesDto:
      type: object
      properties:
        protocolFeePercent:
          type: string
          description: Protocol fee percentage
          example: '0.02'
        protocolFeeAmount:
          type: string
          description: Protocol fee amount (human-readable)
          example: '0.0002'
        platformFeePercent:
          type: string
          description: Platform fee percentage
          example: '0.02'
        totalFeePercent:
          type: string
          description: Total fee percentage
          example: '0.04'
        totalFeeAmount:
          type: string
          description: Total fee amount (human-readable)
          example: '0.0004'
        gasFee:
          type: string
          description: Estimated gas fee in SOL
          example: '0.000005'
        totalCost:
          type: string
          description: Estimated total cost (fees + gas)
          example: '0.010405'
      required:
        - protocolFeePercent
        - protocolFeeAmount
        - platformFeePercent
        - totalFeePercent
        - totalFeeAmount
        - gasFee
        - totalCost
    SwapRouteDto:
      type: object
      properties:
        hops:
          type: number
          description: Number of hops in the route
          example: 2
        dexes:
          description: DEXs/AMMs used in order
          example:
            - Raydium CLMM
            - HumidiFi
          type: array
          items:
            type: string
        tokens:
          description: Tokens involved in the route
          example:
            - SOL
            - JUP
            - USDC
          type: array
          items:
            type: string
        efficiencyScore:
          type: number
          description: Route efficiency score (1-100)
          example: 98
      required:
        - hops
        - dexes
        - tokens
        - efficiencyScore
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-KEY

````