/v1/gas
Gas estimate for a chain
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/gasfees-api/v1/gas" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gasfees-api/v1/gas", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gasfees-api/v1/gas");
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/gasfees-api/v1/gas",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "Ethereum",
"chain": "ethereum",
"tiers": {
"fast": {
"max_fee_gwei": 1.065,
"gas_price_gwei": 0.937,
"priority_fee_gwei": 0.809
},
"slow": {
"max_fee_gwei": 0.264,
"gas_price_gwei": 0.135,
"priority_fee_gwei": 0.007
},
"standard": {
"max_fee_gwei": 0.327,
"gas_price_gwei": 0.198,
"priority_fee_gwei": 0.07
}
},
"native": "ETH",
"fee_type": "eip1559",
"base_fee_gwei": 0.128
},
"meta": {
"timestamp": "2026-06-09T03:02:38.832Z",
"request_id": "ec343707-9b2e-43d7-9a52-b192c9cc5681"
},
"status": "ok",
"message": "Gas fees retrieved successfully",
"success": true
}