SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getLighthouse();curl --request GET \
--url https://data.solanatracker.io/lighthouse \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/lighthouse"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://data.solanatracker.io/lighthouse', 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://data.solanatracker.io/lighthouse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.solanatracker.io/lighthouse"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.solanatracker.io/lighthouse")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/lighthouse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"market": "all",
"label": "All",
"icon": "https://www.solanatracker.io/logo.png",
"url": "https://www.solanatracker.io",
"stats": {
"5m": {
"transactions": {
"total": 1200,
"buys": 640,
"sells": 560,
"changePct": 4.2
},
"wallets": {
"total": 900,
"changePct": 1.1
},
"volume": {
"total": 1500000,
"buys": 800000,
"sells": 700000,
"changePct": -2.5
},
"tokensCreated": {
"total": 40,
"changePct": 10
},
"migrations": {
"total": 8,
"changePct": 0
}
},
"1h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
},
"6h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
},
"24h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
}
}
}
]{
"error": "Unauthorized"
}{
"error": "Unable to retrieve Solana memecoin market stats"
}Lighthouse
Solana Meme 币市场统计 API
获取 Solana Meme 币市场的滚动统计,覆盖 DEX 和发射台,如 all、pumpfun、meteora-curve:bags。接口为 GET /lighthouse。
GET
/
lighthouse
SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getLighthouse();curl --request GET \
--url https://data.solanatracker.io/lighthouse \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/lighthouse"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://data.solanatracker.io/lighthouse', 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://data.solanatracker.io/lighthouse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.solanatracker.io/lighthouse"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.solanatracker.io/lighthouse")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/lighthouse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"market": "all",
"label": "All",
"icon": "https://www.solanatracker.io/logo.png",
"url": "https://www.solanatracker.io",
"stats": {
"5m": {
"transactions": {
"total": 1200,
"buys": 640,
"sells": 560,
"changePct": 4.2
},
"wallets": {
"total": 900,
"changePct": 1.1
},
"volume": {
"total": 1500000,
"buys": 800000,
"sells": 700000,
"changePct": -2.5
},
"tokensCreated": {
"total": 40,
"changePct": 10
},
"migrations": {
"total": 8,
"changePct": 0
}
},
"1h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
},
"6h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
},
"24h": {
"transactions": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"wallets": {
"total": 0,
"changePct": 0
},
"volume": {
"total": 0,
"buys": 0,
"sells": 0,
"changePct": 0
},
"tokensCreated": {
"total": 0,
"changePct": 0
},
"migrations": {
"total": 0,
"changePct": 0
}
}
}
}
]{
"error": "Unauthorized"
}{
"error": "Unable to retrieve Solana memecoin market stats"
}返回 Solana Meme 币市场的滚动统计,例如
all、pumpfun、raydium-all 和 meteora-curve:bags。覆盖 DEX、发射台和已发现的发射台市场。
没有查询参数。
SDK Example
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getLighthouse();
授权
响应
Solana Meme 币市场条目数组。响应通常以 all 开头,其后依次是 DEX、发射台和发射台子市场。
Solana Meme 币 DEX、发射台或聚合市场的键。例如:all、pumpfun、raydium-all、meteora-curve:bags。
示例:
"all"
"pumpfun"
"raydium-all"
"meteora-curve:bags"
便于阅读的显示名称。
Logo URL,没有时为空字符串。
DEX 或发射台的 URL,没有时为空字符串。
Show child attributes
Show child attributes
子市场所属父级 DEX 或发射台的键,例如 meteora-curve 或 raydium-launchpad。顶级市场不返回此字段。
此页面对您有帮助吗?