Zum Inhalt springen
GET /v1/balance

Native balance + nonce + is-contract on one chain

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}