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

# Transfer LP Tokens

> Transfer LP tokens between users within a pro pool.

If the receiver doesn't have an existing LP position, a new one is created automatically (the payer covers the rent). The sender's LP balance is reduced and the receiver's is increased.

LP tokens represent a proportional share of the pool's reserves and accumulated fees.



## OpenAPI

````yaml /openapi.json post /tx/pro/transfer-lp
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/transfer-lp:
    post:
      tags:
        - Pro Pool API
      summary: Transfer LP Tokens
      description: >-
        Transfer LP tokens between users within a pro pool.


        If the receiver doesn't have an existing LP position, a new one is
        created automatically (the payer covers the rent). The sender's LP
        balance is reduced and the receiver's is increased.


        LP tokens represent a proportional share of the pool's reserves and
        accumulated fees.
      operationId: create_pro_transfer_lp_tx
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProTransferLpTxRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProTransferLpTxResponse'
components:
  schemas:
    ProTransferLpTxRequest:
      type: object
      required:
        - pool
        - sender
        - payer
        - receiver
        - program_id
        - amount
      properties:
        pool:
          type: string
          description: >-
            On-chain address of the pro pool state account. Returned in the
            response when creating a pool.
        sender:
          type: string
          description: Public key of the LP token sender. Must be a signer.
        payer:
          type: string
          description: Public key of the wallet that will sign and pay for the transaction.
        receiver:
          type: string
          description: >-
            Public key of the LP token receiver. A new LP position will be
            created for them if one does not exist.
        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 LP tokens to transfer.
        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: >-
        Transfer LP tokens from one user to another within a pro pool. The
        receiver will get a new LP position PDA if they don't have one yet. The
        payer covers the account creation rent.
    ProTransferLpTxResponse:
      type: object
      required:
        - tx
      properties:
        tx:
          type: string
          description: >-
            Base64 encoded versioned transaction. Decode, sign with the sender
            (and payer if different), and submit.

````