/v1/estimate
Transaction cost in native coin
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/gasfees-api/v1/estimate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gasfees-api/v1/estimate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gasfees-api/v1/estimate");
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/estimate",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Ethereum",
"note": "default = a plain native transfer (21000 gas)",
"tier": "fast",
"chain": "ethereum",
"native": "ETH",
"gas_limit": 21000,
"cost_label": "0.000019679 ETH",
"cost_native": 1.9679e-5,
"gas_price_gwei": 0.937
},
"meta": {
"timestamp": "2026-06-09T03:02:38.958Z",
"request_id": "e531b69a-2dde-4641-9c83-24cb03c01531"
},
"status": "ok",
"message": "Estimate retrieved successfully",
"success": true
}