Aller au contenu
GET /v1/chain

One network full stats

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/chainstats-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/chainstats-api/v1/chain" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/chainstats-api/v1/chain", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/chainstats-api/v1/chain");
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/chainstats-api/v1/chain",
    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": {
        "chain": "bitcoin",
        "nodes": 356,
        "blocks": 953157,
        "source": "Blockchair",
        "price_usd": 61384,
        "difficulty": 138955357012247.3,
        "circulation": 2004108666997096,
        "hashrate_24h": "884161057735711313294",
        "market_cap_usd": 1230488358299,
        "best_block_time": "2026-06-10 22:43:44",
        "transactions_24h": 583978,
        "best_block_height": 953156,
        "transactions_total": 1374022221,
        "market_dominance_pct": 55.8,
        "mempool_transactions": 75488,
        "price_change_24h_pct": -0.4865,
        "blockchain_size_bytes": 746534641183,
        "mempool_total_fee_usd": 5700.0542,
        "average_transaction_fee_usd_24h": 0.31120228183034293
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:11.587Z",
        "request_id": "ee5232ce-c5f3-47e6-8d72-3aa090c40d07"
    },
    "status": "ok",
    "message": "Chain stats retrieved successfully",
    "success": true
}