Deposit liquidity to a pro pool.
Deposits token A and SOL proportional to the current pool ratio. You receive LP tokens representing your share of the pool. If this is your first time adding liquidity, a new LP position PDA is created for your wallet.
Parameters: Specify max_token_a and max_token_b as upper bounds — the actual deposited amounts will match the pool’s current ratio. Set min_lp_tokens to protect against slippage (use 0 to accept any amount).
Deposit liquidity to a pro pool. The amounts deposited will be proportional to the current pool reserves. You receive LP tokens representing your share of the pool.
Public key of the wallet that will sign and pay for the transaction.
Mint address of the SPL token (token A) in the pool.
Protocol config version. Use 1 for community tokens, 2 for creator tokens, 3 for pro pools.
x >= 0Program ID of the Heaven DEX program. Use HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o for mainnet.
Maximum amount of token A (native units) to deposit. The actual amount may be less to maintain the pool ratio.
x >= 0Maximum amount of SOL (lamports) to deposit. The actual amount may be less to maintain the pool ratio.
x >= 0Minimum LP tokens to receive. Set to 0 to accept any amount. Higher values protect against slippage.
x >= 0On-chain address of the pro pool state account. Returned in the response when creating a pool.
Maximum compute units for the transaction. Higher values allow more complex operations but cost more. Defaults to a sensible value if omitted.
x >= 0Priority fee in micro-lamports per compute unit. Higher values increase transaction priority. Defaults to a sensible value if omitted.
x >= 0Base64 encoded versioned transaction. Decode, sign, and submit.