Aller au contenu
GET /v1/block

A block by height or hash

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/dash-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/dash-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dash-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dash-api/v1/block");
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/dash-api/v1/block",
    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": {
        "hash": "0000000000000030b324d854aad619197a04b50932f0f73e690847265bff3632",
        "time": "2026-06-10T09:14:57.000Z",
        "nonce": 798046450,
        "height": 2486000,
        "source": "Dash (Insight)",
        "chainlock": false,
        "difficulty": 58735010.68157029,
        "miner_pool": "Discus Fish",
        "size_bytes": 16419,
        "merkle_root": "9969ea01f6aa12182fbb2072be9da08494701a355cadfa3214a3bede2549cff2",
        "confirmations": 317,
        "transaction_count": 16
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:19.791Z",
        "request_id": "9ede7b4c-d0c6-4db8-bc88-8a3fe59169d4"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}