Wallets Get a single wallet
Get a single wallet
Returns one wallet with its balances. Balances come from a cache. When one is missing or older than 5 minutes, Gravv queues a refresh and returns without waiting for it.
Api-Key
Returns one wallet with its balances. Balances come from a cache. When one is missing or older than 5 minutes, Gravv queues a refresh and returns without waiting for it.
Gravv tracks balances for USDC on every listed network, USDT on polygon, ethereum, avalanche and solana, and the network's own coin.
Path parameters
NameDescription
wallet_idWallet ID
Response
Returns 200 OK. The wallet and its balances
NameDescription
dataShow 1 child attributesobject
assetsBalances from the cache, USDC first. A missing asset means it has not been read yet, not that the balance is zero.
Show 5 child attributesobject[]
symbolAsset symbol
balanceBalance in whole units, as a decimal string
decimalsNumber of decimal places for this asset
updated_atWhen the balance was last read on-chain. The API leaves it out when it is not known.
staleTrue when the balance is older than 5 minutes. Gravv has queued a refresh, so read the wallet again in a few seconds. The API leaves it out when false.
errorErrors
| Status | Meaning |
|---|---|
| 200 | The wallet and its balances |
| 400 | The request failed. An unknown ID, or another tenant's wallet, returns wallet not found. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/wallets/2d52eb6d-4fac-44db-a225-d0e6aa13b0e3");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"id": "2d52eb6d-4fac-44db-a225-d0e6aa13b0e3",
"address": "GDZQAF4A2E5VZMMQVW7XG4FKWZ5KDSUEZF5VQBDQVM53TMU2YLE54NTX",
"network": "stellar",
"name": "my wallet",
"date_created": "2026-10-12T09:14:03Z",
"customer_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"wallet_type": "customer",
"assets": [
{
"symbol": "USDC",
"balance": "25.5000000",
"decimals": 7,
"updated_at": "2026-10-12T09:20:00Z"
},
{
"symbol": "XLM",
"balance": "1.5000000",
"decimals": 7,
"updated_at": "2026-10-12T09:20:00Z",
"stale": true
}
]
},
"error": null
}
{
"data": null,
"error": "wallet not found"
}