Aller au contenu
GET /v1/epoch

Current epoch economics

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/suinetwork-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/suinetwork-api/v1/epoch" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/suinetwork-api/v1/epoch", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/suinetwork-api/v1/epoch");
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/suinetwork-api/v1/epoch",
    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": {
        "note": "The current Sui epoch's network economics from the system state — the epoch number, protocol version, reference gas price, total stake (in SUI), active validator count, storage-fund balances and epoch timing. The network-economics view that complements the validator-set reader. ",
        "epoch": 1158,
        "source": "Sui RPC",
        "safe_mode": false,
        "total_stake_sui": 7227128568.64594,
        "protocol_version": 124,
        "epoch_duration_ms": 86400000,
        "reference_gas_price": 100,
        "system_state_version": 2,
        "active_validator_count": 129,
        "epoch_start_timestamp_ms": 1781395521723,
        "pending_active_validator_count": 0,
        "storage_fund_total_rebates_sui": 1447745.1506632,
        "storage_fund_non_refundable_sui": 1170305.190593774
    },
    "meta": {
        "timestamp": "2026-06-14T17:03:47.155Z",
        "request_id": "847893b2-81cd-47cd-a4dd-433d2adf152c"
    },
    "status": "ok",
    "message": "Epoch retrieved successfully",
    "success": true
}