USDC received
curl --get "https://data.solanatracker.io/account/GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3/transfers" \
--header "x-api-key: YOUR_API_KEY" \
--data-urlencode "mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" \
--data-urlencode "direction=in" \
--data-urlencode "historicPrices=true" \
--data-urlencode "limit=50"const address = "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3";
let cursor;
do {
const url = new URL(`https://data.solanatracker.io/account/${address}/transfers`);
url.search = new URLSearchParams({ limit: "100", historicPrices: "true", ...(cursor && { cursor }) });
const response = await fetch(url, { headers: { "x-api-key": "YOUR_API_KEY" } });
if (!response.ok) throw new Error((await response.json()).error);
const page = await response.json();
for (const t of page.transfers) {
console.log(t.direction, t.uiAmount, t.token.symbol, t.value.usd, t.signature);
}
cursor = page.pagination.next;
} while (cursor);
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
// USDC received over the last week, worth at least $10 at the time.
const data = await client.getAccountTransfers('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF', {
direction: 'in',
mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
minValue: 10,
start: Math.floor(Date.now() / 1000) - 7 * 86400,
limit: 100,
});
// Pass grouped: true for one entry per transaction, or use
// client.iterateAccountTransfers() with the same filters to page through every result.
import requests
url = "https://data.solanatracker.io/account/{address}/transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.solanatracker.io/account/{address}/transfers",
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/account/{address}/transfers"
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/account/{address}/transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/account/{address}/transfers")
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{
"account": "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3",
"transfers": [
{
"signature": "2VxcHt8HKSt2T2EuUZLyWPsEKz4H4BPreWV28aZDEzoaHG4Fsu232oKKeQqpVqsSYaf3vv8KN7UoZ4MPJA8vw9EF",
"status": "success",
"type": "spl",
"direction": "in",
"from": {
"address": "C2RjaMN2NeYAErS6KiBjPQhHCt95J8mCmmLiQqZXPisR",
"owner": "BfG7WYmravgBhNdWpGoiFmF8L1duw2vdqdDHiZid2hoJ"
},
"to": {
"address": "D9CEogjHA6CpS12F8St9zpSco7pQKJB5uR1RqDsuzQZk",
"owner": "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3"
},
"token": {
"name": "USD Coin",
"symbol": "USDC",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png",
"decimals": 6
},
"amount": "25000000",
"uiAmount": "25",
"decimals": 6,
"price": {
"usd": 1
},
"value": {
"usd": 25
},
"timestamp": 1792483949,
"slot": 459159504
}
],
"pagination": {
"next": "st1.eyJjIjpudWxsLCJrIjoiMlZ4Y0h0OEhLU3QyVDJFdVVaTHlXUHNFS3o0SDRCUHJlV1YyOGFaREV6b2FIRzRGc3UyMzJvS0tlUXFwVnFzU1lhZjN2djhLTjdVb1o0TVBKQTh2dzlFRjoyOi0xIn0",
"hasMore": true,
"count": 1
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Transfers
Solana 钱包转账记录 API
获取钱包的 SOL、SPL 和 Token-2022 转账,从新到旧排序,含代币元数据和可选的美元价格,可按代币、方向、时间或数量筛选。
GET
/
account
/
{address}
/
transfers
USDC received
curl --get "https://data.solanatracker.io/account/GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3/transfers" \
--header "x-api-key: YOUR_API_KEY" \
--data-urlencode "mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" \
--data-urlencode "direction=in" \
--data-urlencode "historicPrices=true" \
--data-urlencode "limit=50"const address = "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3";
let cursor;
do {
const url = new URL(`https://data.solanatracker.io/account/${address}/transfers`);
url.search = new URLSearchParams({ limit: "100", historicPrices: "true", ...(cursor && { cursor }) });
const response = await fetch(url, { headers: { "x-api-key": "YOUR_API_KEY" } });
if (!response.ok) throw new Error((await response.json()).error);
const page = await response.json();
for (const t of page.transfers) {
console.log(t.direction, t.uiAmount, t.token.symbol, t.value.usd, t.signature);
}
cursor = page.pagination.next;
} while (cursor);
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
// USDC received over the last week, worth at least $10 at the time.
const data = await client.getAccountTransfers('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF', {
direction: 'in',
mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
minValue: 10,
start: Math.floor(Date.now() / 1000) - 7 * 86400,
limit: 100,
});
// Pass grouped: true for one entry per transaction, or use
// client.iterateAccountTransfers() with the same filters to page through every result.
import requests
url = "https://data.solanatracker.io/account/{address}/transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.solanatracker.io/account/{address}/transfers",
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/account/{address}/transfers"
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/account/{address}/transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/account/{address}/transfers")
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{
"account": "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3",
"transfers": [
{
"signature": "2VxcHt8HKSt2T2EuUZLyWPsEKz4H4BPreWV28aZDEzoaHG4Fsu232oKKeQqpVqsSYaf3vv8KN7UoZ4MPJA8vw9EF",
"status": "success",
"type": "spl",
"direction": "in",
"from": {
"address": "C2RjaMN2NeYAErS6KiBjPQhHCt95J8mCmmLiQqZXPisR",
"owner": "BfG7WYmravgBhNdWpGoiFmF8L1duw2vdqdDHiZid2hoJ"
},
"to": {
"address": "D9CEogjHA6CpS12F8St9zpSco7pQKJB5uR1RqDsuzQZk",
"owner": "GachaNgyXTU3zFogQ8Z5jR2BLXs8215X2AtEH18VxJq3"
},
"token": {
"name": "USD Coin",
"symbol": "USDC",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png",
"decimals": 6
},
"amount": "25000000",
"uiAmount": "25",
"decimals": 6,
"price": {
"usd": 1
},
"value": {
"usd": 25
},
"timestamp": 1792483949,
"slot": 459159504
}
],
"pagination": {
"next": "st1.eyJjIjpudWxsLCJrIjoiMlZ4Y0h0OEhLU3QyVDJFdVVaTHlXUHNFS3o0SDRCUHJlV1YyOGFaREV6b2FIRzRGc3UyMzJvS0tlUXFwVnFzU1lhZjN2djhLTjdVb1o0TVBKQTh2dzlFRjoyOi0xIn0",
"hasMore": true,
"count": 1
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}钱包的转账历史:转入和转出的 SOL、SPL 和 Token-2022 转账,按从新到旧排序,包含代币元数据、钱包身份,以及可选的每笔转账发生时的美元价格。
默认不包含有 DEX 活动(兑换、添加和移除流动性、领取池手续费)的交易中的转账;设置
dex=include 或 dex=only 可查看这些转账。可按代币、方向、发送方、接收方或交易对手、时间或插槽范围、数量、美元价值和交易结果筛选,也可按交易分组转账。此端点的时间戳为 Unix 秒。
每个参数只有一个名称。未知参数会返回 400,并指出正确的参数名(unknown parameter timeStart; use start),因此拼写错误不会返回未经筛选的页面。
分页: 沿 pagination.next 继续请求,直到 hasMore 为 false。每页只包含完整的交易,因此转账数可能比 limit 略多或略少。带筛选的请求每次只读取有限数量的转账,因此即使 hasMore 仍为 true,一页也可能少于 limit 条,甚至为空。
如需实时转账,请在 Datastream 上加入转账房间。参阅转账指南。
SDK Example
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
// USDC received over the last week, worth at least $10 at the time.
const data = await client.getAccountTransfers('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF', {
direction: 'in',
mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
minValue: 10,
start: Math.floor(Date.now() / 1000) - 7 * 86400,
limit: 100,
});
// Pass grouped: true for one entry per transaction, or use
// client.iterateAccountTransfers() with the same filters to page through every result.
查询参数
响应
该地址的转账
此页面对您有帮助吗?