Aller au contenu
GET /v1/blocks

Latest blocks

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/rootstock-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/rootstock-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rootstock-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rootstock-api/v1/blocks");
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/rootstock-api/v1/blocks",
    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": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xc6ca72404f88212b96c16b32465d7389095d4397746edd93bdeba29c1238fa62",
                "size": 5342,
                "miner": "0x4E5dABc28e4a0f5E5B19FCB56b28C5a1989352c1",
                "height": 8922594,
                "gas_used": 170426,
                "tx_count": 3,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T01:17:01.000000Z",
                "burnt_fees": "0",
                "difficulty": "11483642301656156471469",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xe147ad7302be1c0c24b25e3810e6f98324e194eddd5a819b26307dca687305d3",
                "size": 2302,
                "miner": "0x5aEe2975E2Ed688f231CcB40E20eE6c10A98D507",
                "height": 8922593,
                "gas_used": 0,
                "tx_count": 1,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T01:16:06.000000Z",
                "burnt_fees": "0",
                "difficulty": "11512423360056297214505",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x325ad23b94d9d266e3e8201d70bb8acd75b7a2119fc4ec9f94746a95cdc67c1a",
                "size": 1147,
                "miner": "0x4E5dABc28e4a0f5E5B19FCB56b28C5a1989352c1",
                "height": 8922592,
                "gas_used": 0,
                "tx_count": 1,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T01:15:45.000000Z",
                "burnt_fees": "0",
                "difficulty": "11483714074869124403497",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x462745ddcc27aa7ce742db7a26fc21f2b922d05e1df4373b282ccb5b95c88a24",
                "size": 1348,
                "miner": "0x4E5dABc28e4a0f5E5B19FCB56b28C5a1989352c1",
                "height": 8922591,
                "gas_used": 57073,
                "tx_count": 2,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T01:15:41.000000Z",
                "burnt_fees": "0",
                "difficulty": "11455076383909351025933",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x849846e0b5d5afd99b229bd07d576ee9840e287edddd5b0ab52d3d0a1ed48f45",
                "size": 4704,
                "miner": "0xCe7864A8b5bF360b01099502A163810cEc845D4a",
                "height": 8922590,
                "gas_used": 432174,
                "tx_count": 5,
                "gas_limit": 10000000,
                "timestamp": "2026-06-08T01:15:31.000000Z",
                "burnt_fees": "0",
                "difficulty": "11426510108637756634348",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x949376ae186b3c337dd79fd913baf9a2647a3d840e712df3e82cb480725b2ae5",
                "size": 4477,
                "miner": "
…