/v1/block
A Cadence block by height: id, parent, timestamp, collections
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/flowcadence-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/flowcadence-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/flowcadence-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/flowcadence-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": "a74e6818616deb6baa4f694c6cccb72602125e0c9e96f952ae305b74d9b69b34",
"note": "A Flow Cadence block: its height, id, parent block, timestamp and the number of collection guarantees (batched transaction sets) and block seals it carries. Omit height for the latest sealed block.",
"height": 154772077,
"source": "Flow access API",
"parent_id": "c085cc2be1ddde7aa823ec78453570f416de8638456dd1e07ced34e6fae46d4a",
"timestamp": "2026-06-14T09:01:54.368Z",
"seal_count": null,
"collection_count": null
},
"meta": {
"timestamp": "2026-06-14T17:04:32.622Z",
"request_id": "40f7d877-6be2-4a9c-937e-b9b03ab4ef64"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}