SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletChartV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i', {
interval: '1d', // Or '1h', up to 90 days.
timeFrom: Math.floor(Date.now() / 1000) - 30 * 86400, // Unix seconds.
includesPositions: true, // Leaves out the older tokens-only points.
});
console.log(data.change['24h'].percent, data.points.at(-1)?.usd);curl --request GET \
--url https://data.solanatracker.io/v2/wallet/{wallet}/chart \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/v2/wallet/{wallet}/chart"
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/v2/wallet/{wallet}/chart', 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/v2/wallet/{wallet}/chart",
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/v2/wallet/{wallet}/chart"
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/v2/wallet/{wallet}/chart")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/v2/wallet/{wallet}/chart")
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{
"wallet": "CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i",
"interval": "1d",
"change": {
"24h": {
"usd": -158.388082,
"percent": -0.13
},
"30d": {
"usd": null,
"percent": null
}
},
"points": [
{
"time": 1787011200000,
"usd": 6923.059,
"sol": 91.06526,
"includesPositions": false,
"changePercent": null
},
{
"time": 1795132800000,
"usd": 122629.863201,
"sol": 1781.128012921,
"includesPositions": true,
"changePercent": null
},
{
"time": 1795219200000,
"usd": 122824.201652,
"sol": 1750.387522537,
"includesPositions": true,
"changePercent": 0.16
},
{
"time": 1795305600000,
"usd": 122665.81357,
"sol": 1778.432891944,
"includesPositions": true,
"changePercent": -0.13
}
]
}{
"error": "Invalid sort. Valid options are: value, amount, change24h"
}{
"error": "<string>"
}{
"error": "Wallet data is temporarily unavailable, please retry"
}Wallet
Solana Wallet Net Worth Chart API
Get a Solana wallet’s net worth history by hour or day, including DeFi positions, with 24h and 30d change.
GET
/
v2
/
wallet
/
{wallet}
/
chart
SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletChartV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i', {
interval: '1d', // Or '1h', up to 90 days.
timeFrom: Math.floor(Date.now() / 1000) - 30 * 86400, // Unix seconds.
includesPositions: true, // Leaves out the older tokens-only points.
});
console.log(data.change['24h'].percent, data.points.at(-1)?.usd);curl --request GET \
--url https://data.solanatracker.io/v2/wallet/{wallet}/chart \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/v2/wallet/{wallet}/chart"
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/v2/wallet/{wallet}/chart', 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/v2/wallet/{wallet}/chart",
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/v2/wallet/{wallet}/chart"
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/v2/wallet/{wallet}/chart")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/v2/wallet/{wallet}/chart")
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{
"wallet": "CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i",
"interval": "1d",
"change": {
"24h": {
"usd": -158.388082,
"percent": -0.13
},
"30d": {
"usd": null,
"percent": null
}
},
"points": [
{
"time": 1787011200000,
"usd": 6923.059,
"sol": 91.06526,
"includesPositions": false,
"changePercent": null
},
{
"time": 1795132800000,
"usd": 122629.863201,
"sol": 1781.128012921,
"includesPositions": true,
"changePercent": null
},
{
"time": 1795219200000,
"usd": 122824.201652,
"sol": 1750.387522537,
"includesPositions": true,
"changePercent": 0.16
},
{
"time": 1795305600000,
"usd": 122665.81357,
"sol": 1778.432891944,
"includesPositions": true,
"changePercent": -0.13
}
]
}{
"error": "Invalid sort. Valid options are: value, amount, change24h"
}{
"error": "<string>"
}{
"error": "Wallet data is temporarily unavailable, please retry"
}The wallet’s net worth over time, in USD and SOL. Each point is the net worth at the end of that hour or day (UTC).
- Net worth is recorded for wallets requested through Wallet V2, and keeps being recorded for 30 days after the last request. Requesting a wallet that isn’t recorded yet starts recording it.
- Points from before a wallet was first recorded count tokens only, not DeFi positions. They have
includesPositions: false. PassincludesPositions=trueto leave them out. changePercentis the change from the previous point. It isnullwhere the chart switches from tokens-only points to full points.changecompares the latest point with 24 hours and 30 days earlier. The 30-day change needs a time range longer than 30 days.
time in the response is in Unix milliseconds; time_from and time_to are in Unix seconds.
SDK Example
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletChartV2('CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i', {
interval: '1d', // Or '1h', up to 90 days.
timeFrom: Math.floor(Date.now() / 1000) - 30 * 86400, // Unix seconds.
includesPositions: true, // Leaves out the older tokens-only points.
});
console.log(data.change['24h'].percent, data.points.at(-1)?.usd);
Path Parameters
Query Parameters
Response
The wallet's net worth history.
Was this page helpful?