https://tx.api.heaven.xyz
All transaction endpoints return unsigned transactions. Your app is responsible for signing with the user’s wallet and submitting to the Solana network.
Standard Pools
Standard pools use Heaven’s one-click launch flow — create a new token and pool in a single transaction.1
Quote a buy
Before buying, get a quote to see how many tokens you’ll receive for a given SOL amount.Response:
curl
2
Build the buy transaction
Pass the full quote response to build a transaction.Response:
curl
3
Sign and submit
Decode the Base64 transaction, sign it with the payer’s wallet, and submit to Solana.
TypeScript
Rust
4
Quote and sell
Selling follows the same pattern — quote first, then build the transaction.Then pass the response to
curl
/tx/sell to build the transaction.Pro Pools
Pro Pools let you bring any existing SPL token onto Heaven’s AMM. See Pro Pools for a full overview.1
Create a pro pool
Provide your existing token mint, initial liquidity amounts, and optional creator fee/feature configuration.Response:
curl
Save the
pool address from the response — you’ll need it for all future interactions with this pool.2
Buy tokens in a pro pool
Pro pool buys require two calls: quote, then build the transaction. Both need the
pool address.curl
curl
3
Sell tokens in a pro pool
Same two-step flow as buying.Then pass the response to
curl
/tx/pro/sell.4
Deposit liquidity
Deposit tokens and SOL to earn LP tokens and trading fees.The actual deposited amounts will be proportional to the pool’s current ratio. Set
curl
min_lp_tokens above 0 to protect against slippage.5
Check LP balance
Query your LP position at any time.Response:
curl
6
Manage pool (creator only)
As the pool creator, you can toggle features and update fees.Other creator endpoints:
Toggle swap off
Set creator fee brackets
/tx/pro/toggle-deposit, /tx/pro/toggle-withdraw, /tx/pro/set-slot-creator-fee, /tx/pro/update-creator-fee-receiverData endpoints
Fetch pool information without building transactions.Get pool info
Get protocol config
Next steps
- See the full API reference for all endpoints and parameters
- Learn about Pro Pools for custom pool configuration