Aller au contenu
GET /v1/block

Block details

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/litecoin-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/litecoin-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/litecoin-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/litecoin-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/litecoin-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": "08215d27d8cca209d7f01faf0e473d711f95a71fa2c883f8eae90ac7eea63582",
        "size": 115339,
        "nonce": 1694292631,
        "height": 3122719,
        "source": "Litecoin",
        "weight": 313027,
        "version": 536870932,
        "tx_count": 293,
        "timestamp": "2026-06-10T13:56:29.000Z",
        "difficulty": 100804941.18980844,
        "merkle_root": "c6b59ea0e9e8d9e806ff80e27d487da4664d9271ba63338abf4b4951f2e88b06",
        "previous_hash": "f96fcd5c93bdc08223de3bcfe50b3b69b2e00bd506ee5744cabde29ac4782190"
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:06.358Z",
        "request_id": "6cb4e2d4-9720-4769-a9fb-51800ed55ff5"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}