Aller au contenu
GET /v1/block

A block details and the Bitcoin block it anchors to

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/stacks-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/stacks-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stacks-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stacks-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/stacks-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": "0x51c90cfa00462be608b49c639aeea9eeee75778fb13c486fc0bfcbf5d0929b5d",
        "time": "2026-06-10T14:01:00.000Z",
        "height": 8244261,
        "source": "Stacks",
        "tx_count": 8,
        "miner_txid": "0x47760f9b2bf47b4d474253f7ddef8bfe3f7c34a0115c0643399a80b53b17b9b8",
        "parent_hash": "0x5f1407feee967c17bd9106fb9bc48b1e542ecf5ce168f062c118fe7b595b67ae",
        "tenure_height": 245689,
        "bitcoin_burn_block_hash": "0x0000000000000000000169d7903fb22595e7f29e486a97d56844ab7f4f432c44",
        "bitcoin_burn_block_time": "2026-06-10T13:56:22.000Z",
        "bitcoin_burn_block_height": 953111
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:25.586Z",
        "request_id": "ee7c9122-527f-4236-aef5-3b9ac6e5a7b5"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}