Aller au contenu
GET /v1/network

Live network state

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/solana-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "tps": 2789,
        "epoch": 984,
        "health": "ok",
        "slot_index": 232104,
        "block_height": 425320135,
        "absolute_slot": 425320104,
        "slots_in_epoch": 432000,
        "transaction_count": 519257231005,
        "epoch_progress_pct": 53.7
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:49.110Z",
        "request_id": "24272c87-f49f-4b61-92d6-a8272c588329"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}