Get a quote for buying tokens in a standard pool.
Returns the estimated token output, fees, and minimum output after slippage. Pass the full response object to /tx/buy to build the transaction.
Note: The quote is calculated at the current on-chain state and may change by the time the transaction is submitted. Use slippage_bps to protect against price movements.
Use 1 for Community Token and 2 for Creator Token
x >= 0Maximum amount of SOL to spend for the buy operation
1
Mint address of the token
"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777"
Program ID of the Heaven DEX program
Slippage in basis points (bps), e.g., 50 bps = 0.5%
x >= 050
Use the response to create a buy transaction.
Protocol config version used for the quote.
x >= 0Maximum amount of lamports to spend for the buy operation
x >= 0Maximum amount of SOL to spend for the buy operation
Minimum amount of tokens to receive from the buy operation
x >= 0Minimum amount of tokens to receive from the buy operation in UI format
Mint address of the token being bought.
Heaven DEX program ID used.
Slippage tolerance applied (basis points).
x >= 0