Lấy danh tính ví
Tra cứu thông tin danh tính trên chuỗi của ví Solana, bao gồm tên miền và hồ sơ mạng xã hộ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": "Sàn giao dịch tập trung",
"tags": [
"Sàn giao dịch tập trung"
],
"domainNames": [
"toly.sol",
"kash.superteam"
]
}{
"error": "Địa chỉ ví không hợp lệ",
"code": 400,
"details": "'invalid-address' không phải là địa chỉ Solana hợp lệ"
}{
"error": "Cần có khóa API. Truyền qua ?api-key=xxx hoặc tiêu đề X-Api-Key",
"code": 401
}{
"error": "Địa chỉ ví không hợp lệ",
"code": 400,
"details": "'invalid-address' không phải là địa chỉ Solana hợp lệ"
}{
"error": "RATE_LIMIT_EXCEEDED",
"code": 429,
"details": "Quá nhiều yêu cầu. Hãy thử lại sau 2 giây."
}{
"error": "INTERNAL_ERROR",
"code": 500,
"details": "Đã xảy ra lỗi không mong muốn. Vui lòng thử lại."
}403 Forbidden.
Tham số yêu cầu
toly.sol,
miester.bonk). Tính năng phân giải tên miền chỉ hỗ trợ mainnet. Mọi tên miền không phải .sol đều được coi
là TLD tùy chỉnh của ANS — không có danh sách TLD cho phép cố định.Ủy quyền
Khóa API được truyền dưới dạng tham số truy vấn
Tham số đường dẫn
Địa chỉ ví Solana (được mã hóa base58) hoặc tên miền SNS/ANS (ví dụ: toly.sol,
miester.bonk). Chỉ phân giải tên miền trên mainnet. Mọi tên miền không phải .sol đều được coi
là TLD tùy chỉnh ANS — không có danh sách trắng TLD cố định.
Phản hồi
Đã tìm thấy thông tin danh tính
Địa chỉ ví Solana
"HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664"
Loại thực thể
"exchange"
Tên hiển thị
"Binance 1"
Phân loại danh mục
"Sàn giao dịch tập trung"
Các thẻ phân loại bổ sung
["Sàn giao dịch tập trung"]
Tất cả tên miền on-chain thuộc sở hữu của địa chỉ này, bao gồm SNS (.sol) và TLD tùy chỉnh ANS (.bonk, .wen, v.v.). Tên miền .sol yêu thích được đặt đầu tiên nếu đã thiết lập; các tên miền còn lại được sắp xếp theo thứ tự bảng chữ cái. Bị lược bỏ nếu ví không sở hữu tên miền nào.
["toly.sol", "kash.superteam"]
Trang này có hữu ích không?
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": "Sàn giao dịch tập trung",
"tags": [
"Sàn giao dịch tập trung"
],
"domainNames": [
"toly.sol",
"kash.superteam"
]
}{
"error": "Địa chỉ ví không hợp lệ",
"code": 400,
"details": "'invalid-address' không phải là địa chỉ Solana hợp lệ"
}{
"error": "Cần có khóa API. Truyền qua ?api-key=xxx hoặc tiêu đề X-Api-Key",
"code": 401
}{
"error": "Địa chỉ ví không hợp lệ",
"code": 400,
"details": "'invalid-address' không phải là địa chỉ Solana hợp lệ"
}{
"error": "RATE_LIMIT_EXCEEDED",
"code": 429,
"details": "Quá nhiều yêu cầu. Hãy thử lại sau 2 giây."
}{
"error": "INTERNAL_ERROR",
"code": 500,
"details": "Đã xảy ra lỗi không mong muốn. Vui lòng thử lại."
}