Ir al contenido
GET /v1/difficulty

Difficulty-adjustment status

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/mempool-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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