Aller au contenu
GET /v1/chain

One rollup's full cost & performance detail + history

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/l2fees-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "tps": 137.63,
        "name": "Base",
        "note": "One Ethereum layer-2 rollup's current transaction cost and performance — median, native-transfer and token-swap cost in USD (and median in ETH), plus TPS and throughput — and a short recent history of its median cost so you can see the trend. Live, cached ~60s.",
        "chain": "base",
        "is_l1": false,
        "source": "growthepie public API (v1/fees/table.json), keyless",
        "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,
        "median_cost_history": [
            {
                "time": "2026-06-12T17:00:00.000Z",
                "median_tx_cost_usd": 0.000931
            },
            {
                "time": "2026-06-12T16:00:00.000Z",
                "median_tx_cost_usd": 0.00117
            },
            {
                "time": "2026-06-12T15:00:00.000Z",
                "median_tx_cost_usd": 0.00133
            },
            {
                "time": "2026-06-12T14:00:00.000Z",
                "median_tx_cost_usd": 0.00132
            },
            {
                "time": "2026-06-12T13:00:00.000Z",
                "median_tx_cost_usd": 0.00124
            },
            {
                "time": "2026-06-12T12:00:00.000Z",
                "median_tx_cost_usd": 0.00109
            },
            {
                "time": "2026-06-12T11:00:00.000Z",
                "median_tx_cost_usd": 0.000956
            },
            {
                "time": "2026-06-12T10:00:00.000Z",
                "median_tx_cost_usd": 0.00104
            },
            {
                "time": "2026-06-12T09:00:00.000Z",
                "median_tx_cost_usd": 0.00106
            },
            {
                "time": "2026-06-12T08:00:00.000Z",
                "median_tx_cost_usd": 0.00103
            },
            {
                "time": "2026-06-12T07:00:00.000Z",
                "median_tx_cost_usd": 0.000537
            },
            {
                "time": "2026-06-12T06:00:00.000Z",
                "median_tx_cost_usd": 0.00106
            },
            {
                "time": "2026-06-12T05:00:00.000Z",
                "median_tx_cost_usd": 0.000719
            },
            {
                "time": "2026-06-12T04:00:00.000Z",
                "median_tx_cost_usd": 0.000709
            },
            {
                "time": "2026-06-12T03:00:00.000Z",
                "median_tx_cost_usd": 0.000717
            },
            {
                "time": "2026-06-12T02:00:00.000Z",
                "median_tx_cost_usd": 0.000955
            },
            {
                "time": "2026-06-12T01:00:00.000Z",
                "median_tx_cost_usd": 0.000977
            },
            {
                "time": "2026-06-12T00:00:00.000Z",
                "median_tx_cost_usd": 
…