---
title: "Claim Fees — Generate transaction(s) to claim accrued LP fees"
method: POST
path: "/position/claim-fee-tx"
tags: ["Position"]
---

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

`POST /position/claim-fee-tx`

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.

## Request body

- object
  - `position_id` string, required — The position ID
  - `owner` string, required — The owner's wallet address
  - `slippage_bps` integer, required — Slippage tolerance in basis points for swap-to-SOL (0-10000). Ignored when swapToNative is false.
  - `swapToNative` boolean — When true, the response includes swap transactions that convert the claimed fees into SOL.
  - `provider` 'OKX' | 'JUPITER_ULTRA' — The swap provider to use (only relevant when swapToNative is true)
  - `type` 'meteora' | 'meteora_damm_v2' — The pool type

## Response `200`

Transaction data prepared successfully

- object
  - `data` object
    - `lastValidBlockHeight` number
    - `claimTxsWithJito` string[]
    - `swapTxsWithJito` string[]
    - `meta` object

## Other responses

- `400` — Invalid parameters or position-related errors
- `500` — Internal server error

## Changes

- **2026-05-25** `f90fd69d221b` — 1 info
  - endpoint added
- **2026-05-25** `1708e5fd4a28` — 1 breaking
  - api path removed without deprecation
- **2026-05-12** `ef0125dacdeb` — 2 warning, 2 info
  - removed the request property `swapToSol`
  - removed the optional property `data/meta/swapToSol` from the response with the `200` status
  - added the new optional request property `swapToNative`
  - added the optional property `data/meta/swapToNative` to the response with the `200` status
- **2026-05-12** `da7dfcc4ecd1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lpagent/apis/lp-agent-open-api/changes/position/claim-fee-tx/post.md)

---

[API](https://skmtc.dev/lpagent/apis/lp-agent-open-api.md) · [All operations](https://skmtc.dev/lpagent/apis/lp-agent-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lpagent/lp-agent-open-api/revisions/f90fd69d221b/schema)
