Skip to main content
POST
Transfer LP Tokens

Body

application/json

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.

pool
string
required

On-chain address of the pro pool state account. Returned in the response when creating a pool.

sender
string
required

Public key of the LP token sender. Must be a signer.

payer
string
required

Public key of the wallet that will sign and pay for the transaction.

receiver
string
required

Public key of the LP token receiver. A new LP position will be created for them if one does not exist.

program_id
string
required

Program ID of the Heaven DEX program. Use HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o for mainnet.

amount
integer<int64>
required

Amount of LP tokens to transfer.

Required range: x >= 0
compute_unit_limit
integer<int32> | null

Maximum compute units for the transaction. Higher values allow more complex operations but cost more. Defaults to a sensible value if omitted.

Required range: x >= 0
compute_unit_price
integer<int64> | null

Priority fee in micro-lamports per compute unit. Higher values increase transaction priority. Defaults to a sensible value if omitted.

Required range: x >= 0

Response

200 - application/json
tx
string
required

Base64 encoded versioned transaction. Decode, sign with the sender (and payer if different), and submit.