Zum Inhalt springen
GET /v1/network

Latest TON masterchain block (chain tip)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/ton-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}