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

# Claim LP Fees

> Claim accumulated LP provider trading fees from a pro pool.

LP fees accrue proportionally to your LP token balance. Fees are automatically tracked per LP position and can be claimed at any time.



## OpenAPI

````yaml /openapi.json post /tx/pro/claim-lp-fees
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/claim-lp-fees:
    post:
      tags:
        - Pro Pool API
      summary: Claim LP Fees
      description: >-
        Claim accumulated LP provider trading fees from a pro pool.


        LP fees accrue proportionally to your LP token balance. Fees are
        automatically tracked per LP position and can be claimed at any time.
      operationId: create_claim_pro_lp_fees_tx
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClaimProLpFeesTxRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaimProLpFeesTxResponse'
components:
  schemas:
    ClaimProLpFeesTxRequest:
      type: object
      required:
        - payer
        - mint
        - config_version
        - program_id
        - 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.
        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: >-
        Claim accumulated LP provider trading fees from a pro pool. Only users
        with an active LP position can claim.
    ClaimProLpFeesTxResponse:
      type: object
      required:
        - tx
      properties:
        tx:
          type: string
          description: Base64 encoded versioned transaction. Decode, sign, and submit.

````