Vai al contenuto
GET /v1/block

A block details and the Bitcoin block it anchors to

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/stacks-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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