Ir al contenido
GET /v1/cheapest

Cheapest rollup right now for a transfer and a swap

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/l2fees-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "The single cheapest Ethereum layer-2 rollup right now for a simple native transfer and for a token swap, in USD, plus the cheapest overall by median cost — and how much cheaper that is than transacting on Ethereum L1 (l2_saving_vs_l1_pct). The quick 'where should I transact' answer. Live, cached ~60s.",
        "source": "growthepie public API (v1/fees/table.json), keyless",
        "cheapest_for_swap": {
            "name": "OP Mainnet",
            "chain": "optimism",
            "cost_usd": 8.67e-6
        },
        "l2_saving_vs_l1_pct": 99.97,
        "cheapest_for_transfer": {
            "name": "OP Mainnet",
            "chain": "optimism",
            "cost_usd": 3.99e-5
        },
        "cheapest_overall_median": {
            "name": "OP Mainnet",
            "chain": "optimism",
            "cost_usd": 1.45e-5
        },
        "ethereum_l1_median_cost_usd": 0.0443
    },
    "meta": {
        "timestamp": "2026-06-12T19:35:55.250Z",
        "request_id": "46684ce6-a121-4e0e-ae81-630cf9813cd7"
    },
    "status": "ok",
    "message": "Cheapest retrieved successfully",
    "success": true
}