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

# Claim Fees — Generate transaction(s) to claim accrued LP fees

> Generates serialized claim-fee transactions for a Meteora DLMM or DAMM V2 position. When `swapToNative` is true, also returns swap transactions that convert the claimed fees into SOL using the supplied slippage tolerance.



## OpenAPI

````yaml /api-reference/openapi.json post /position/claim-fee-tx
openapi: 3.0.0
info:
  title: LP Agent Open API
  version: 1.0.0
  description: |+
    Public API for LP Agent

    **Authentication**

    All endpoints require an API key passed via the `x-api-key` header.

servers:
  - url: https://api.lpagent.io/open-api/v1
    description: Production
security:
  - apiKeyAuth: []
tags: []
paths:
  /position/claim-fee-tx:
    post:
      tags:
        - Position
      summary: Claim Fees — Generate transaction(s) to claim accrued LP fees
      description: >-
        Generates serialized claim-fee transactions for a Meteora DLMM or DAMM
        V2 position. When `swapToNative` is true, also returns swap transactions
        that convert the claimed fees into SOL using the supplied slippage
        tolerance.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - position_id
                - owner
                - slippage_bps
              properties:
                position_id:
                  type: string
                  description: The position ID
                owner:
                  type: string
                  description: The owner's wallet address
                slippage_bps:
                  type: integer
                  description: >-
                    Slippage tolerance in basis points for swap-to-SOL
                    (0-10000). Ignored when swapToNative is false.
                  minimum: 0
                  maximum: 10000
                swapToNative:
                  type: boolean
                  default: false
                  description: >-
                    When true, the response includes swap transactions that
                    convert the claimed fees into SOL.
                provider:
                  type: string
                  enum:
                    - OKX
                    - JUPITER_ULTRA
                  description: >-
                    The swap provider to use (only relevant when swapToNative is
                    true)
                type:
                  type: string
                  enum:
                    - meteora
                    - meteora_damm_v2
                  default: meteora
                  description: The pool type
      responses:
        '200':
          description: Transaction data prepared successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      lastValidBlockHeight:
                        type: number
                      claimTxsWithJito:
                        type: array
                        items:
                          type: string
                      swapTxsWithJito:
                        type: array
                        items:
                          type: string
                      meta:
                        type: object
        '400':
          description: Invalid parameters or position-related errors
        '500':
          description: Internal server error
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````