Naar de inhoud
GET /v1/account

Account nonce, class + STRK/ETH balances

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "nonce": 269870,
        "source": "Starknet",
        "address": "0x2a3c3ca257e1ab251cdf73bbefde48ebcc7baf73f9fdb065853b9dc5b07b217",
        "class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",
        "eth_balance": 0,
        "is_deployed": true,
        "strk_balance": 575.300514
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:15.221Z",
        "request_id": "8e005c6d-3324-4a11-920a-9ed3b4592960"
    },
    "status": "ok",
    "message": "Account retrieved successfully",
    "success": true
}