> ## 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.

# Withdraw Liquidity

> Withdraw liquidity from a pro pool by burning LP tokens.

You receive token A and SOL proportional to your share of the pool. Use `min_token_a` and `min_token_b` to set minimum acceptable amounts (slippage protection).



## OpenAPI

````yaml /openapi.json post /tx/pro/remove-liquidity
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:
  /tx/pro/remove-liquidity:
    post:
      tags:
        - Pro Pool API
      summary: Withdraw Liquidity
      description: >-
        Withdraw liquidity from a pro pool by burning LP tokens.


        You receive token A and SOL proportional to your share of the pool. Use
        `min_token_a` and `min_token_b` to set minimum acceptable amounts
        (slippage protection).
      operationId: create_remove_liquidity_pro_pool_tx
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveLiquidityProPoolTxRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveLiquidityProPoolTxResponse'
components:
  schemas:
    RemoveLiquidityProPoolTxRequest:
      type: object
      required:
        - payer
        - mint
        - config_version
        - program_id
        - lp_tokens_to_burn
        - min_token_a
        - min_token_b
        - pool
      properties:
        payer:
          type: string
          description: Public key of the wallet that will sign and pay for the transaction.
        mint:
          type: string
          description: Mint address of the SPL token (token A) in the pool.
        config_version:
          type: integer
          format: int32
          minimum: 0
          description: >-
            Protocol config version. Use 1 for community tokens, 2 for creator
            tokens, 3 for pro pools.
        program_id:
          type: string
          description: >-
            Program ID of the Heaven DEX program. Use
            `HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o` for mainnet.
        lp_tokens_to_burn:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Amount of LP tokens to burn. You will receive token A and SOL
            proportional to your pool share.
        min_token_a:
          type: integer
          format: int64
          minimum: 0
          description: Minimum amount of token A to receive. Protects against slippage.
        min_token_b:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Minimum amount of SOL (lamports) to receive. Protects against
            slippage.
        pool:
          type: string
          description: >-
            On-chain address of the pro pool state account. Returned in the
            response when creating a pool.
        compute_unit_limit:
          type: integer
          format: int32
          minimum: 0
          nullable: true
          description: >-
            Maximum compute units for the transaction. Higher values allow more
            complex operations but cost more. Defaults to a sensible value if
            omitted.
        compute_unit_price:
          type: integer
          format: int64
          minimum: 0
          nullable: true
          description: >-
            Priority fee in micro-lamports per compute unit. Higher values
            increase transaction priority. Defaults to a sensible value if
            omitted.
      description: >-
        Withdraw liquidity from a pro pool by burning LP tokens. You receive
        token A and SOL proportional to your share of the pool.
    RemoveLiquidityProPoolTxResponse:
      type: object
      required:
        - tx
      properties:
        tx:
          type: string
          description: Base64 encoded versioned transaction. Decode, sign, and submit.

````