Fetch a user’s LP position in a pro pool.
Returns the LP token balance, pending fees, and whether the position exists on-chain. If the user has never added liquidity (or received LP tokens via transfer), exists will be false and all values will be zero.
The lp_position_address is the PDA derived from [USER_LP_POSITION, pool, user] — useful for monitoring the account directly via WebSocket subscriptions.
Query a user's LP token balance in a pro pool. Returns zero values if the user has never added liquidity.
On-chain address of the pro pool state account. Returned in the response when creating a pool.
Public key of the wallet to check the LP balance for.
Program ID of the Heaven DEX program. Use HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o for mainnet.
LP position information for a user in a pro pool.
Current LP token balance for this user in the pool.
x >= 0Accumulated reward debt used internally for fee distribution calculations.
x >= 0Pending trading fees claimable by this LP position.
x >= 0On-chain PDA address of the user's LP position account.
Whether the LP position account exists on-chain. False if the user has never added liquidity to this pool.