Aller au contenu
GET /v1/tip

Chain head: current epoch, block height and slot

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/cardanochain-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/cardanochain-api/v1/tip" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cardanochain-api/v1/tip", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cardanochain-api/v1/tip");
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/cardanochain-api/v1/tip",
    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 Cardano chain head: current epoch, slot and block.",
        "epoch": 637,
        "source": "Koios",
        "block_hash": "881bdf58821581fe82beb8c586d6286d8ca0d843c31e885aaf82c38a66dc4a20",
        "block_time": 1781424230,
        "epoch_slot": 37139,
        "block_height": 13548077,
        "absolute_slot": 189857939
    },
    "meta": {
        "timestamp": "2026-06-14T08:03:53.572Z",
        "request_id": "72774610-ff00-484c-8ec6-18bee8b3ddc5"
    },
    "status": "ok",
    "message": "Tip retrieved successfully",
    "success": true
}