分析钱包
curl --request GET \
--url http://127.0.0.1:3000/analyze/{wallet}import requests
url = "http://127.0.0.1:3000/analyze/{wallet}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://127.0.0.1:3000/analyze/{wallet}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://127.0.0.1:3000/analyze/{wallet}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://127.0.0.1:3000/analyze/{wallet}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:3000/analyze/{wallet}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:3000/analyze/{wallet}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{}端点
GET /analyze/:wallet
返回完整 AnalyzeReport JSON(application/json)。路径参数为 Polygon 上 0x 钱包地址,一般无需对 0x 再做 URL 编码。查询参数与 CLI analyze 的当次开关一致。
GET
/
analyze
/
{wallet}
分析钱包
curl --request GET \
--url http://127.0.0.1:3000/analyze/{wallet}import requests
url = "http://127.0.0.1:3000/analyze/{wallet}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://127.0.0.1:3000/analyze/{wallet}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://127.0.0.1:3000/analyze/{wallet}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://127.0.0.1:3000/analyze/{wallet}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:3000/analyze/{wallet}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:3000/analyze/{wallet}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{}完整
布尔值常用
AnalyzeReport JSON,与 CLI analyze <wallet> 在相同配置与查询参数下语义一致。
路径
wallet:0x开头的地址;直接写在路径中即可,避免破坏路径的额外编码。
与 CLI 对齐的查询参数(可选)
| 参数 | 说明 |
|---|---|
no_cache | 跳过报告缓存 |
with_subgraph / no_subgraph | 子图开关 |
subgraph_cap_rows | 子图每流行数上限 |
with_reconciliation / no_reconciliation | 对账开关 |
with_canonical / no_canonical | 规范层落库开关 |
no_persist_raw | 当次不写 raw |
true / false。
示例
curl -s "http://127.0.0.1:3000/analyze/0x5924ca480d8b08cd5f3e5811fa378c4082475af6" | jq .
curl -s "http://127.0.0.1:3000/analyze/0x5924ca480d8b08cd5f3e5811fa378c4082475af6?no_cache=true" | jq .
curl -s "http://127.0.0.1:3000/analyze/0x5924ca480d8b08cd5f3e5811fa378c4082475af6?with_subgraph=true&with_reconciliation=true" | jq .
未提供 HTTP 的能力
report-from-canonical-run、export-ambiguous、set-ambiguous-review 等仅支持 CLI;无对应 REST 路由。Path Parameters
钱包地址,例如 0x5924…
Query Parameters
为 true 时跳过 Postgres 报告缓存
当次启用 Goldsky 子图拉取
当次关闭子图
子图每条流最大行数封顶(整数)
Required range:
x >= 0当次启用对账摘要
当次关闭对账
当次启用规范层合并并写 PG(需数据库)
当次关闭规范层
当次不写 raw 表
Response
200 - application/json
AnalyzeReport JSON(schema_version 2.x)
结构化报告,含 lifetime、market_distribution、strategy_inference、frontend 等字段