Naar de inhoud
GET /v1/account

Account balance + contract flag

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/near-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}