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

# Quote Sell

> Get a quote for selling tokens in a standard pool.

Returns the estimated SOL output, fees, and minimum output after slippage. Pass the full response object to `/tx/sell` to build the transaction.



## OpenAPI

````yaml /openapi.json post /quote/sell
openapi: 3.1.0
info:
  title: heaven-tx-api
  description: ''
  license:
    name: ''
  version: 0.1.14
servers:
  - url: https://tx.api.heaven.xyz
security: []
tags:
  - name: heaven-api
    description: Heaven API
paths:
  /quote/sell:
    post:
      tags:
        - Standard Pool API
      summary: Quote Sell
      description: >-
        Get a quote for selling tokens in a standard pool.


        Returns the estimated SOL output, fees, and minimum output after
        slippage. Pass the full response object to `/tx/sell` to build the
        transaction.
      operationId: quote_sell
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteSellRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteSellResponse'
components:
  schemas:
    QuoteSellRequest:
      type: object
      required:
        - config_version
        - mint
        - program_id
        - amount_in_ui
        - slippage_bps
      properties:
        amount_in_ui:
          type: number
          description: Amount of tokens to sell in UI format
          example: 100
        config_version:
          type: integer
          description: Use 1 for Community Token and 2 for Creator Token
          default: 1
          minimum: 0
        mint:
          type: string
          description: Mint address of the token
          example: LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777
        program_id:
          type: string
          description: Program ID of the Heaven DEX program
          default: HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o
        slippage_bps:
          type: integer
          description: Slippage in basis points (bps), e.g., 50 bps = 0.5%
          example: 50
          minimum: 0
    QuoteSellResponse:
      type: object
      required:
        - amount_in
        - amount_in_ui
        - minimum_out
        - minimum_out_ui
        - config_version
        - mint
        - program_id
        - slippage_bps
      properties:
        amount_in:
          type: integer
          format: int64
          minimum: 0
          description: Amount of tokens to sell (native units).
        amount_in_ui:
          type: number
          format: double
          description: Amount of tokens to sell (human-readable with decimals).
        config_version:
          type: integer
          format: int32
          minimum: 0
          description: Protocol config version used for the quote.
        minimum_out:
          type: integer
          format: int64
          minimum: 0
          description: Minimum SOL output after slippage (lamports).
        minimum_out_ui:
          type: number
          format: double
          description: Minimum SOL output after slippage (human-readable).
        mint:
          type: string
          description: Mint address of the token being sold.
        program_id:
          type: string
          description: Heaven DEX program ID used.
        slippage_bps:
          type: integer
          format: int64
          minimum: 0
          description: Slippage tolerance applied (basis points).

````