Skip to main content
Heaven’s REST API lets you build transactions server-side and sign them client-side. All endpoints return Base64-encoded Solana transactions that you decode, sign, and submit. Base URL: 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.
curl
Response:
2

Build the buy transaction

Pass the full quote response to build a transaction.
curl
Response:
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.
curl
Then pass the response to /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.
curl
Response:
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.
curl
Then pass the response to /tx/pro/sell.
4

Deposit liquidity

Deposit tokens and SOL to earn LP tokens and trading fees.
curl
The actual deposited amounts will be proportional to the pool’s current ratio. Set min_lp_tokens above 0 to protect against slippage.
5

Check LP balance

Query your LP position at any time.
curl
Response:
6

Manage pool (creator only)

As the pool creator, you can toggle features and update fees.
Toggle swap off
Set creator fee brackets
Other creator endpoints: /tx/pro/toggle-deposit, /tx/pro/toggle-withdraw, /tx/pro/set-slot-creator-fee, /tx/pro/update-creator-fee-receiver

Data 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