Zum Inhalt springen
GET /v1/chains

Every L2 rollup ranked cheapest-first by transaction cost

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Every tracked Ethereum layer-2 rollup ranked from cheapest by its median transaction cost in USD, each with its native-transfer cost, token-swap cost, average cost and throughput (TPS and Mgas/s). Ethereum L1 (is_l1=true) is included as the baseline — compare its median cost to the rollups to see the L2 saving. This is the user cost of transacting, not the chain's revenue. Live, cached ~60s.",
        "count": 14,
        "chains": [
            {
                "tps": 18.34,
                "name": "OP Mainnet",
                "chain": "optimism",
                "is_l1": false,
                "updated": "2026-06-12T17:00:00.000Z",
                "swap_cost_usd": 8.67e-6,
                "avg_tx_cost_usd": 0.000599,
                "throughput_mgas": 4.51,
                "median_tx_cost_eth": 8.7e-9,
                "median_tx_cost_usd": 1.45e-5,
                "native_transfer_cost_usd": 3.99e-5
            },
            {
                "tps": 11.89,
                "name": "Unichain",
                "chain": "unichain",
                "is_l1": false,
                "updated": "2026-06-12T17:00:00.000Z",
                "swap_cost_usd": 0.000503,
                "avg_tx_cost_usd": 0.000536,
                "throughput_mgas": 1.12,
                "median_tx_cost_eth": 5.11e-8,
                "median_tx_cost_usd": 8.55e-5,
                "native_transfer_cost_usd": 0.000842
            },
            {
                "tps": 0.54,
                "name": "Mode",
                "chain": "mode",
                "is_l1": false,
                "updated": "2026-06-12T17:00:00.000Z",
                "swap_cost_usd": 0.000601,
                "avg_tx_cost_usd": 9.26e-5,
                "throughput_mgas": 0.28,
                "median_tx_cost_eth": 5.21e-8,
                "median_tx_cost_usd": 8.71e-5,
                "native_transfer_cost_usd": 0.000133
            },
            {
                "tps": 137.63,
                "name": "Base",
                "chain": "base",
                "is_l1": false,
                "updated": "2026-06-12T17:00:00.000Z",
                "swap_cost_usd": 0.0022,
                "avg_tx_cost_usd": 0.00655,
                "throughput_mgas": 20.49,
                "median_tx_cost_eth": 5.566e-7,
                "median_tx_cost_usd": 0.000931,
                "native_transfer_cost_usd": 0.000217
            },
            {
                "tps": 0.59,
                "name": "Taiko",
                "chain": "taiko",
                "is_l1": false,
                "updated": "2026-06-12T17:00:00.000Z",
                "swap_cost_usd": 0.00856,
                "avg_tx_cost_usd": 0.00354,
                "throughput_mgas": 0.07,
                "median_tx_cost_eth": 1.1207e-6,
                "median_tx_cost_usd": 0.00187,
                "native_transfer_cost_usd": 0.00147
            },
            {
                "tps": 3.34,
                "name": "Starknet",
 
…