Vai al contenuto
GET /v1/blocks

Recent blocks

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/bitcoin-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitcoin-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitcoin-api/v1/blocks");
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/bitcoin-api/v1/blocks",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

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

{
    "data": {
        "count": 15,
        "blocks": [
            {
                "hash": "00000000000000000002a0b5db2a7f8d9087464c2586b546be7bce8eb53b8187",
                "pool": "Braiins Pool",
                "size": 1939011,
                "nonce": 2096869482,
                "height": 850000,
                "weight": 3993288,
                "tx_count": 3163,
                "timestamp": 1719689674,
                "difficulty": 83675262295059.9,
                "median_fee": 9,
                "reward_btc": 3.24421978,
                "merkle_root": "71cff5c1fda5d6dd820a025fc19f2619638e91c259a26902c36bcf69d66b1ad5",
                "reward_sats": 324421978,
                "total_fees_sats": 11921978
            },
            {
                "hash": "000000000000000000026b072f9347d86942f6786dd1fc362acfd9522715b313",
                "pool": "Foundry USA",
                "size": 1740661,
                "nonce": 3448999128,
                "height": 849999,
                "weight": 3993238,
                "tx_count": 1527,
                "timestamp": 1719688529,
                "difficulty": 83675262295059.9,
                "median_fee": 8,
                "reward_btc": 3.22582991,
                "merkle_root": "8bfc4aa03893d330a0e56f232847bd57e3a68f2a427659dc134f9e96cb9e6462",
                "reward_sats": 322582991,
                "total_fees_sats": 10082991
            },
            {
                "hash": "00000000000000000000ec8da633f1fb0f8f281e43c52e5702139fac4f91204a",
                "pool": "ViaBTC",
                "size": 1852293,
                "nonce": 739782098,
                "height": 849998,
                "weight": 3993186,
                "tx_count": 568,
                "timestamp": 1719688063,
                "difficulty": 83675262295059.9,
                "median_fee": 8,
                "reward_btc": 3.20635867,
                "merkle_root": "222775d8fcabf762350c0477c5c4bc9eb6167b19feb7bc30b60dbec35545f29d",
                "reward_sats": 320635867,
                "total_fees_sats": 8135867
            },
            {
                "hash": "00000000000000000001d60b775b9827866a50bf4006b8083fdce7d19f816f71",
                "pool": "ViaBTC",
                "size": 1883957,
                "nonce": 358418113,
                "height": 849997,
                "weight": 3993410,
                "tx_count": 216,
                "timestamp": 1719687946,
                "difficulty": 83675262295059.9,
                "median_fee": 8,
                "reward_btc": 3.20893932,
                "merkle_root": "2b50015ee499f54acf191a46f71fea4a0aa51b203179aa575c9d9a15086ae35e",
                "reward_sats": 320893932,
                "total_fees_sats": 8393932
            },
            {
                "hash": "00000000000000000003110ebf1b04864ed8918c38e85c4c625a6725f18d2190",
                "pool": "Foundry USA",
                "size": 1717529,
                "nonce": 2362127251,
               
…