Body
application/json
Use 1 for Community Token and 2 for Creator Token
Required range:
x >= 0Maximum amount of SOL to spend for the buy operation
Example:
1
Mint address of the token
Example:
"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777"
Program ID of the Heaven DEX program
Slippage in basis points (bps), e.g., 50 bps = 0.5%
Required range:
x >= 0Example:
50
Response
200 - application/json
Use the response to create a buy transaction.
Required range:
x >= 0Maximum amount of lamports to spend for the buy operation
Required range:
x >= 0Maximum amount of SOL to spend for the buy operation
Minimum amount of tokens to receive from the buy operation
Required range:
x >= 0Minimum amount of tokens to receive from the buy operation in UI format
Required range:
x >= 0