/v1/block
Block by number (or latest)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/matchain-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/matchain-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/matchain-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/matchain-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"hash": "0xaece1dc572f44bb9aecaaf3140235aff1c25d428e6819aca4ad24218cf41d084",
"chain": "Matchain",
"miner": "0x4200000000000000000000000000000000000011",
"number": 5000000,
"gas_used": 43839,
"tx_count": 1,
"gas_limit": 100000000,
"timestamp": 1726308788,
"size_bytes": 838,
"parent_hash": "0xd8ce9dee02f3be1502520d79378de35d1281b07a75c40fbd24f74e60cd990171",
"timestamp_iso": "2024-09-14T10:13:08.000Z"
},
"meta": {
"timestamp": "2026-06-15T20:40:09.620Z",
"request_id": "cce77f16-5348-4098-8200-04744f8ae960"
},
"status": "ok",
"message": "Matchain block retrieved",
"success": true
}