Zum Inhalt springen
GET /v1/balance

A wallet SOL balance

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/solana-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/solana-api/v1/balance" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solana-api/v1/balance", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solana-api/v1/balance");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/solana-api/v1/balance",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "sol": 377.047072,
        "owner": "11111111111111111111111111111111",
        "exists": true,
        "address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ",
        "explorer": "https://solscan.io/account/GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ",
        "lamports": 377047071711,
        "executable": false,
        "rent_epoch": 1.8446744073709552e+19
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:48.903Z",
        "request_id": "eed4e8db-4d85-4f4e-a479-c33d92328638"
    },
    "status": "ok",
    "message": "Balance retrieved successfully",
    "success": true
}