Zum Inhalt springen
GET /v1/meta

Spec

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "api": "Towns API",
        "chain": "Towns",
        "source": "Towns L2 JSON-RPC nodes",
        "symbol": "ETH",
        "chain_id": 550,
        "endpoints": [
            "/v1/status",
            "/v1/block",
            "/v1/gas",
            "/v1/balance",
            "/v1/meta"
        ],
        "description": "Live EVM on-chain data for Towns — an OP-Stack Layer-2 powering decentralised group chat and social spaces, gas paid in ETH.",
        "documentation": "https://api.oanor.com/towns-api"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:13.315Z",
        "request_id": "3c001f5c-1593-4d16-a68c-8ba329c8247f"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}