/v1/block
A block by height or hash
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/decred-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/decred-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/decred-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/decred-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": "d439d0349f228398c2c533c705b96c7291a1db3b92053c36acbf1977d377db42",
"time": "2026-06-08T15:12:23.000Z",
"height": 1087000,
"source": "Decred (dcrdata)",
"tx_count": 0,
"size_bytes": 8076,
"pow_difficulty": 1563701.5464,
"ticket_pool_size": 40510,
"stake_difficulty_dcr": 306.96731843,
"ticket_pool_value_dcr": 11111941.3326
},
"meta": {
"timestamp": "2026-06-10T13:59:12.714Z",
"request_id": "a509a43f-dbaa-498b-a1b0-c80c8fd219ab"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}