Zum Inhalt springen
GET /v1/account

Account balance + contract flag

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/near-api/v1/account" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/near-api/v1/account", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/near-api/v1/account");
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/near-api/v1/account",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "source": "NEAR",
        "code_hash": "2axCgM1hmJWemwiGH8YuhXzvzodSjfP34X4TzcLRUM76",
        "account_id": "aurora",
        "is_contract": true,
        "locked_near": 0,
        "balance_near": 137816.804812,
        "block_height": 202119376,
        "balance_yocto": "137816804812407026912072052518",
        "storage_usage": 13619243575
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:26.370Z",
        "request_id": "0b82bbf0-6b33-4d95-8fa1-9139e4ea4bde"
    },
    "status": "ok",
    "message": "Account retrieved successfully",
    "success": true
}