> ## 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 Creator Fees

> Claim accumulated creator trading fees from a pro pool.

Creator fees accrue in SOL as users trade in the pool. The fee rate is determined by the pool's market cap based fee brackets. Only the designated fee receiver (initially the pool creator) can claim.



## OpenAPI

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


        Creator fees accrue in SOL as users trade in the pool. The fee rate is
        determined by the pool's market cap based fee brackets. Only the
        designated fee receiver (initially the pool creator) can claim.
      operationId: create_claim_pro_creator_fees_tx
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClaimProCreatorFeesTxRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaimProCreatorFeesTxResponse'
components:
  schemas:
    ClaimProCreatorFeesTxRequest:
      type: object
      required:
        - mint
        - version
        - payer
        - program_id
        - amount
        - pool
      properties:
        mint:
          type: string
          description: Mint address of the SPL token (token A) in the pool.
        version:
          type: integer
          format: int32
          minimum: 0
          description: Protocol config version for the pool.
        payer:
          type: string
          description: Public key of the wallet that will sign and pay for the transaction.
        program_id:
          type: string
          description: >-
            Program ID of the Heaven DEX program. Use
            `HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o` for mainnet.
        amount:
          type: integer
          format: int64
          minimum: 0
          description: Amount of creator trading fees (in lamports) to claim.
        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 creator trading fees from a pro pool. The payer must
        be the pool creator or the designated fee receiver.
    ClaimProCreatorFeesTxResponse:
      type: object
      required:
        - tx
      properties:
        tx:
          type: string
          description: Base64 encoded versioned transaction. Decode, sign, and submit.

````