Naar de inhoud
GET /v1/network

Latest TON masterchain block (chain tip)

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ton-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "chain": "TON",
        "source": "toncenter",
        "latest_block": {
            "seqno": 72672042,
            "shard": "-9223372036854775808",
            "root_hash": "dSYuOAOe6oTMXS5mYTdTYPZWIvIfsGZi0emqJoZyL68=",
            "workchain": -1
        }
    },
    "meta": {
        "timestamp": "2026-06-11T16:47:29.242Z",
        "request_id": "925e22ea-1bb6-4913-a483-5e9784238d42"
    },
    "status": "ok",
    "message": "Network info retrieved successfully",
    "success": true
}