/v1/balance
Native XDC balance and transaction count of an address
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/xdc-api/v1/balance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/xdc-api/v1/balance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/xdc-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/xdc-api/v1/balance",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"address": "0x000000000000000000000000000000000000dEaD",
"balance": "0.000007",
"address_xdc": "xdc000000000000000000000000000000000000dEaD",
"balance_wei": "7000000000000",
"native_symbol": "XDC",
"transaction_count": 0
},
"meta": {
"timestamp": "2026-06-15T11:14:31.606Z",
"request_id": "cb92f049-c4d8-43ae-8531-9d82454e6688"
},
"status": "ok",
"message": "Balance retrieved successfully",
"success": true
}