/v1/difficulty
Difficulty retarget window: progress, projected change, retarget date, blocks left
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/litecoinfees-api/v1/difficulty" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/litecoinfees-api/v1/difficulty", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/litecoinfees-api/v1/difficulty");
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/litecoinfees-api/v1/difficulty",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Litecoin's current difficulty retarget window (Litecoin retargets every 2016 blocks, ~3.5 days): how far through it the chain is, the projected difficulty change, the estimated retarget date and the blocks remaining.",
"source": "Litecoin Space",
"progress_pct": 11.9048,
"remaining_blocks": 1776,
"remaining_time_ms": 275889168,
"next_retarget_height": 3126816,
"difficulty_change_pct": -3.2476,
"previous_retarget_pct": -1.0652,
"estimated_retarget_timestamp": 1781732557168
},
"meta": {
"timestamp": "2026-06-14T17:04:28.717Z",
"request_id": "537e197c-a55c-4d56-abf6-c7bae9f53477"
},
"status": "ok",
"message": "Difficulty retrieved successfully",
"success": true
}