Vai al contenuto
GET /v1/block

A block by height or hash

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/rootstock-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "block": {
            "hash": "0xfd9acf184a68e6449078623cf469e58edaeabbcbd136384031e1caed2a3a610a",
            "size": 3952,
            "miner": "0xCe7864A8b5bF360b01099502A163810cEc845D4a",
            "height": 8922536,
            "gas_used": 251909,
            "tx_count": 4,
            "gas_limit": 10000000,
            "timestamp": "2026-06-08T00:54:31.000000Z",
            "burnt_fees": "0",
            "difficulty": "11343010210657591745246",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:13.412Z",
        "request_id": "900bdd63-ece0-49b0-b079-f835c95508b3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}