SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletBasic('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF');curl --request GET \
--url https://data.solanatracker.io/wallet/{owner}/basic \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/wallet/{owner}/basic"
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/wallet/{owner}/basic', 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/wallet/{owner}/basic",
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/wallet/{owner}/basic"
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/wallet/{owner}/basic")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/wallet/{owner}/basic")
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{
"tokens": [
{
"address": "So11111111111111111111111111111111111111111",
"balance": 0.019911506,
"value": 3.6143897773934883,
"price": {
"quote": 181.5226722375238,
"usd": 181.5226722375238
},
"marketCap": {
"quote": 99213713748.1989,
"usd": 99213713748.1989
},
"liquidity": {
"quote": 14187570.69498935,
"usd": 14187570.69498935
}
},
{
"address": "9BT13kNGQFKvSj2BibHPKmpxxSnqMFUEEZEMQ5SNpump",
"balance": 35145.6526,
"value": 0.1358466724606335,
"price": {
"usd": 0.0000038652482572093,
"quote": 1.6897453884302e-8
},
"marketCap": {
"usd": 3863.1654435176,
"quote": 16.888348583436
},
"liquidity": {
"usd": 7629.3186104034,
"quote": 33.35259492
}
},
{
"address": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
"balance": 0.078177,
"value": 0.03798727245783123,
"price": {
"usd": 0.48591366332593,
"quote": 0.00267735845235
},
"marketCap": {
"usd": 485349964.8012,
"quote": 2674252.5034466
},
"liquidity": {
"usd": 10991626.048437,
"quote": 60563.275180256
}
},
{
"address": "AF7CYuqRw61atGBVT9LpxaXuSW9RuGmfnSAEgaHppump",
"balance": 2143.21592,
"value": 0.007500701071651285,
"price": {
"usd": 0.0000034997412074334,
"quote": 2.7995661589663e-8
},
"marketCap": {
"usd": 3499.7412074334,
"quote": 27.995661589663
},
"liquidity": {
"usd": 7505.524527655,
"quote": 60.039332132
}
}
],
"total": 3.795724423383604,
"totalSol": 0.020910447975426186
}Wallet
Get Basic Wallet Information
Gets all tokens in a wallet with current value in USD (lightweight, non-cached option)
GET
/
wallet
/
{owner}
/
basic
SDK
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletBasic('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF');curl --request GET \
--url https://data.solanatracker.io/wallet/{owner}/basic \
--header 'x-api-key: <api-key>'import requests
url = "https://data.solanatracker.io/wallet/{owner}/basic"
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/wallet/{owner}/basic', 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/wallet/{owner}/basic",
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/wallet/{owner}/basic"
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/wallet/{owner}/basic")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.solanatracker.io/wallet/{owner}/basic")
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{
"tokens": [
{
"address": "So11111111111111111111111111111111111111111",
"balance": 0.019911506,
"value": 3.6143897773934883,
"price": {
"quote": 181.5226722375238,
"usd": 181.5226722375238
},
"marketCap": {
"quote": 99213713748.1989,
"usd": 99213713748.1989
},
"liquidity": {
"quote": 14187570.69498935,
"usd": 14187570.69498935
}
},
{
"address": "9BT13kNGQFKvSj2BibHPKmpxxSnqMFUEEZEMQ5SNpump",
"balance": 35145.6526,
"value": 0.1358466724606335,
"price": {
"usd": 0.0000038652482572093,
"quote": 1.6897453884302e-8
},
"marketCap": {
"usd": 3863.1654435176,
"quote": 16.888348583436
},
"liquidity": {
"usd": 7629.3186104034,
"quote": 33.35259492
}
},
{
"address": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
"balance": 0.078177,
"value": 0.03798727245783123,
"price": {
"usd": 0.48591366332593,
"quote": 0.00267735845235
},
"marketCap": {
"usd": 485349964.8012,
"quote": 2674252.5034466
},
"liquidity": {
"usd": 10991626.048437,
"quote": 60563.275180256
}
},
{
"address": "AF7CYuqRw61atGBVT9LpxaXuSW9RuGmfnSAEgaHppump",
"balance": 2143.21592,
"value": 0.007500701071651285,
"price": {
"usd": 0.0000034997412074334,
"quote": 2.7995661589663e-8
},
"marketCap": {
"usd": 3499.7412074334,
"quote": 27.995661589663
},
"liquidity": {
"usd": 7505.524527655,
"quote": 60.039332132
}
}
],
"total": 3.795724423383604,
"totalSol": 0.020910447975426186
}SDK Example
import { Client } from '@solana-tracker/data-api';
const client = new Client({ apiKey: 'YOUR_API_KEY' });
const data = await client.getWalletBasic('FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF');
Was this page helpful?
⌘I