/v1/balance
A Core-space address's CFX balance and staked balance
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/conflux-api/v1/balance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/conflux-api/v1/balance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/conflux-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/conflux-api/v1/balance",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"source": "Conflux",
"address": "cfx:aara421audx4ev6t7c40a3f6vzjwf5a3apxbm53nxc",
"balance_cfx": 53578.30923481,
"staking_balance_cfx": 0,
"storage_collateral_cfx": 0
},
"meta": {
"timestamp": "2026-06-10T22:58:23.286Z",
"request_id": "a106ce78-146e-49d5-af2f-d5e87e65020f"
},
"status": "ok",
"message": "Balance retrieved successfully",
"success": true
}