/v1/gas
Gas estimate for a chain
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"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
}