Vai al contenuto
GET /v1/difficulty

Difficulty-adjustment status

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "remaining_time": 523326747,
        "progress_percent": 61.35912698412699,
        "remaining_blocks": 779,
        "difficulty_change": -10.614686483539892,
        "previous_retarget": 1.7190077664198355,
        "estimated_retarget_date": 1781404921747
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:55.625Z",
        "request_id": "ee6053cd-3bb8-4ce6-b31a-31f77f4d3f4a"
    },
    "status": "ok",
    "message": "Difficulty retrieved successfully",
    "success": true
}