Ir al contenido
GET /v1/block

A block by height or hash

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/dash-api

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

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

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

{
    "data": {
        "hash": "0000000000000030b324d854aad619197a04b50932f0f73e690847265bff3632",
        "time": "2026-06-10T09:14:57.000Z",
        "nonce": 798046450,
        "height": 2486000,
        "source": "Dash (Insight)",
        "chainlock": false,
        "difficulty": 58735010.68157029,
        "miner_pool": "Discus Fish",
        "size_bytes": 16419,
        "merkle_root": "9969ea01f6aa12182fbb2072be9da08494701a355cadfa3214a3bede2549cff2",
        "confirmations": 317,
        "transaction_count": 16
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:19.791Z",
        "request_id": "9ede7b4c-d0c6-4db8-bc88-8a3fe59169d4"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}