Zum Inhalt springen
GET /v1/block

A block details by revision

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/vechain-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}