Naar de inhoud
GET /v1/balance

Native balance + nonce + is-contract on one chain

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "name": "Ethereum",
        "chain": "ethereum",
        "native": "ETH",
        "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
        "balance": 5.68884045,
        "tx_count": 5896,
        "balance_wei": "5688840446715981478",
        "is_contract": true
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:01.958Z",
        "request_id": "3c668ee4-d9b4-474a-be9e-f6cb0b5fac9e"
    },
    "status": "ok",
    "message": "Balance retrieved successfully",
    "success": true
}