Aller au contenu
GET /v1/block

A block details by revision

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/vechain-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/vechain-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vechain-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vechain-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/vechain-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": {
        "id": "0x00e4e1c088267e1441dad6fc4a1e146f0269491b9109413abea2ef6f91a463a6",
        "size": 361,
        "number": 15000000,
        "source": "VeChain",
        "gas_used": 0,
        "tx_count": 0,
        "gas_limit": 30000000,
        "parent_id": "0x00e4e1bf23a82502afa467a832d9b5ff5de916476f29c5252c4b9b00c669856e",
        "timestamp": "2023-04-03T12:09:20.000Z",
        "beneficiary": "0x762382e169c3488f50b9e2655714ce47fd40be03",
        "total_score": 1458595311,
        "gas_used_pct": 0,
        "is_finalized": true
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:38.800Z",
        "request_id": "f788954a-22ee-43f3-9808-a06a903b4962"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}