钱包
获取钱包身份
解析 Solana 钱包的链上身份信息,包括域名和社交档案。
GET
/
v1
/
wallet
/
{wallet}
/
identity
获取钱包身份
curl --request GET \
--url 'https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key='import requests
url = "https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=', 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://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=",
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 := "https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key="
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("https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664",
"type": "exchange",
"name": "Binance 1",
"category": "Centralized Exchange",
"tags": [
"Centralized Exchange"
],
"domainNames": [
"toly.sol",
"kash.superteam"
]
}{
"error": "无效的钱包地址",
"code": 400,
"details": "'invalid-address'不是有效的Solana地址"
}{
"error": "需要API密钥。通过?api-key=xxx或X-Api-Key头传递",
"code": 401
}{
"error": "无效的钱包地址",
"code": 400,
"details": "'invalid-address' 不是有效的 Solana 地址"
}{
"error": "RATE_LIMIT_EXCEEDED",
"code": 429,
"details": "请求过多。请在 2 秒后重试。"
}{
"error": "INTERNAL_ERROR",
"code": 500,
"details": "发生意外错误。请重试。"
}每次请求消耗 100 点数。
需要付费计划。免费计划的请求将返回
403 Forbidden。
请求参数
string
默认值:"GQUtvPx89ZNCwmvQqFmH59bJcU8fW8siETpaxod7Aydz"
必填
Solana 钱包地址(base58 编码)或 SNS/ANS 域名(例如,
toly.sol,
miester.bonk)。域名解析仅限主网。任何非 .sol 域名将被视为
ANS 自定义 TLD — 没有固定的 TLD 白名单。授权
ApiKeyQueryApiKeyHeader
作为查询参数传递的API密钥
路径参数
Solana 钱包地址(base58编码)或 SNS/ANS 域名(例如 toly.sol, miester.bonk)。域名解析仅限主网。任何非 .sol 域名都被视为 ANS 自定义 TLD — 并没有固定的 TLD 白名单。
响应
已找到身份信息
Solana 钱包地址
示例:
"HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664"
实体类型
示例:
"exchange"
显示名称
示例:
"Binance 1"
类别分类
示例:
"Centralized Exchange"
附加分类标签
示例:
["Centralized Exchange"]
此地址拥有的所有链上域名,包括SNS (.sol)和ANS自定义TLD (.bonk, .wen等)。如果设置了最喜欢的.sol域名,则优先显示;其余域名按字母顺序排列。如果钱包没有域名,则省略。
示例:
["toly.sol", "kash.superteam"]
此页面对您有帮助吗?
⌘I
获取钱包身份
curl --request GET \
--url 'https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key='import requests
url = "https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=', 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://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=",
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 := "https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key="
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("https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helius.xyz/v1/wallet/{wallet}/identity?api-key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"address": "HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664",
"type": "exchange",
"name": "Binance 1",
"category": "Centralized Exchange",
"tags": [
"Centralized Exchange"
],
"domainNames": [
"toly.sol",
"kash.superteam"
]
}{
"error": "无效的钱包地址",
"code": 400,
"details": "'invalid-address'不是有效的Solana地址"
}{
"error": "需要API密钥。通过?api-key=xxx或X-Api-Key头传递",
"code": 401
}{
"error": "无效的钱包地址",
"code": 400,
"details": "'invalid-address' 不是有效的 Solana 地址"
}{
"error": "RATE_LIMIT_EXCEEDED",
"code": 429,
"details": "请求过多。请在 2 秒后重试。"
}{
"error": "INTERNAL_ERROR",
"code": 500,
"details": "发生意外错误。请重试。"
}