/v1/block
Block by number (or latest)
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/wemix-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wemix-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wemix-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/wemix-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": "0x21fef196b26aa9c3363d87f6cca01acca742d409550926d49a49332a68ba8c83",
"chain": "WEMIX",
"miner": "0xc08b5179ce711bde566b4762e83fe98bdb39d5eb",
"number": 5000000,
"gas_used": 119290,
"tx_count": 1,
"gas_limit": 105000000,
"timestamp": 1671234808,
"size_bytes": 4264,
"parent_hash": "0xe489c167193240db151d468bdc8d419c30059ecb6e50adb8e0258ebecc0e19e6",
"timestamp_iso": "2022-12-16T23:53:28.000Z"
},
"meta": {
"timestamp": "2026-06-15T20:40:05.912Z",
"request_id": "c03a4c2e-0726-4ae9-8624-abdb015064f7"
},
"status": "ok",
"message": "WEMIX block retrieved",
"success": true
}