Data API
Get Liquidity Pool Info
Fetch detailed information about a liquidity pool including current reserves, fees collected, market cap, creator verification status, and migration state.
This is the primary endpoint for displaying pool data in a UI. It returns human-readable values (UI amounts with decimals applied).
POST
/
data
/
pool-info
Get Liquidity Pool Info
curl --request POST \
--url https://tx.api.heaven.xyz/data/pool-info \
--header 'Content-Type: application/json' \
--data '
{
"mint": "LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777",
"program_id": "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"
}
'import requests
url = "https://tx.api.heaven.xyz/data/pool-info"
payload = {
"mint": "LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777",
"program_id": "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
mint: 'LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777',
program_id: 'HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o'
})
};
fetch('https://tx.api.heaven.xyz/data/pool-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tx.api.heaven.xyz/data/pool-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mint' => 'LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777',
'program_id' => 'HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tx.api.heaven.xyz/data/pool-info"
payload := strings.NewReader("{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tx.api.heaven.xyz/data/pool-info")
.header("Content-Type", "application/json")
.body("{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tx.api.heaven.xyz/data/pool-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"creator": "G2pX3b4Y8m7v5xX9L5f6y7z8A9B0C1D2E3F4G5H6I7J8K",
"current_base_reserve": 123,
"current_buy_fee_pct": 123,
"current_creator_fee_claim_by_creator": 123,
"current_creator_fee_claim_status": "Unclaimed, Submitted, Processed",
"current_creator_fee_collected_sol": 123,
"current_creator_fee_collected_usd": 123,
"current_creator_fee_distribution": "Community, Creator, Blocked, Shared",
"current_creator_fee_recipient": "G2pX3b4Y8m7v5xX9L5f6y7z8A9B0C1D2E3F4G5H6I7J8K",
"current_market_cap_usd": 123,
"current_quote_reserve": 123,
"current_sell_fee_pct": 123,
"current_sol_price_usd": 123,
"current_trading_volume_usd": 123,
"is_creator_fee_claimable": true,
"is_migrated": true,
"migration_market_cap_threshold": 1,
"protocol_config_version": 1,
"trading_volume_threshold_usd": 123
}
}Body
application/json
Mint address of the token
Example:
"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777"
Program ID of the Heaven DEX program
Example:
"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"
Response
200 - application/json
Detailed pool information object.
Show child attributes
Show child attributes
Previous
Get Liquidity Pool StateFetch the raw on-chain state of a liquidity pool by its mint address.
Returns the full deserialized `LiquidityPoolState` account data. Useful for advanced integrations that need access to all pool parameters.
Next
⌘I
Get Liquidity Pool Info
curl --request POST \
--url https://tx.api.heaven.xyz/data/pool-info \
--header 'Content-Type: application/json' \
--data '
{
"mint": "LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777",
"program_id": "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"
}
'import requests
url = "https://tx.api.heaven.xyz/data/pool-info"
payload = {
"mint": "LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777",
"program_id": "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
mint: 'LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777',
program_id: 'HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o'
})
};
fetch('https://tx.api.heaven.xyz/data/pool-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tx.api.heaven.xyz/data/pool-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mint' => 'LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777',
'program_id' => 'HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tx.api.heaven.xyz/data/pool-info"
payload := strings.NewReader("{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tx.api.heaven.xyz/data/pool-info")
.header("Content-Type", "application/json")
.body("{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tx.api.heaven.xyz/data/pool-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"mint\": \"LiGHtkg3uTa9836RaNkKLLriqTNRcMdRAhqjGWNv777\",\n \"program_id\": \"HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"creator": "G2pX3b4Y8m7v5xX9L5f6y7z8A9B0C1D2E3F4G5H6I7J8K",
"current_base_reserve": 123,
"current_buy_fee_pct": 123,
"current_creator_fee_claim_by_creator": 123,
"current_creator_fee_claim_status": "Unclaimed, Submitted, Processed",
"current_creator_fee_collected_sol": 123,
"current_creator_fee_collected_usd": 123,
"current_creator_fee_distribution": "Community, Creator, Blocked, Shared",
"current_creator_fee_recipient": "G2pX3b4Y8m7v5xX9L5f6y7z8A9B0C1D2E3F4G5H6I7J8K",
"current_market_cap_usd": 123,
"current_quote_reserve": 123,
"current_sell_fee_pct": 123,
"current_sol_price_usd": 123,
"current_trading_volume_usd": 123,
"is_creator_fee_claimable": true,
"is_migrated": true,
"migration_market_cap_threshold": 1,
"protocol_config_version": 1,
"trading_volume_threshold_usd": 123
}
}