Naar de inhoud
GET /v1/meta

Service metadata

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "note": "chains, cheapest and meta take no parameters. chain takes chain (a rollup id, e.g. arbitrum, base, optimism, zksync_era; aliases op, zksync, eth accepted). Costs are in USD and ETH, throughput in TPS and Mgas/s, times in UTC. A short ~60-second protective cache fronts the upstream.",
        "source": "growthepie public API (api.growthepie.xyz), keyless, live",
        "service": "l2fees-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/chain": "One rollup's full cost & performance detail + recent history (chain=arbitrum).",
            "GET /v1/chains": "Every rollup ranked cheapest-first by median tx cost (+ transfer, swap, TPS).",
            "GET /v1/cheapest": "The cheapest rollup right now for a transfer and a swap, vs Ethereum L1."
        },
        "description": "What it costs a user to transact on each Ethereum layer-2 rollup, live and keyless, from the public growthepie dataset. The chains endpoint ranks every tracked rollup (Arbitrum, Base, Optimism, zkSync, Linea, Scroll, Starknet, Mantle, Mode, Metis, Celo, Taiko, Unichain) from cheapest by median transaction cost, with native-transfer cost, swap cost, average cost and throughput (TPS, Mgas/s); chain gives one rollup's full cost-and-performance detail plus recent history; cheapest names the single cheapest rollup right now for a transfer and a swap, versus Ethereum L1. The L2 user-transaction-cost cut — distinct from the L2 economic-activity feed (addresses, tx count, rollup revenue/profit), the multi-chain gas-oracle (gwei gas tiers) and the blob data-availability fee market (the L1 cost rollups pay).",
        "sample_cheapest": {
            "cheapest": "OP Mainnet",
            "median_tx_cost_usd": 1.45e-5
        },
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-12T19:35:55.342Z",
        "request_id": "e0284755-ced3-4793-bc56-d0d2c685bb62"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}