Docs / API: Chains
Gas and fees
Returns current fee data for every chain, with the native asset price in USD.
GET/api/v1/gas
| Property | Value |
|---|---|
| Authentication | Optional. A key raises your limit. |
| Rate-limit cost | 1 unit |
| Status | Live |
#Request
curl -s "https://farbeamlabs.com/api/v1/gas"const res = await fetch("https://farbeamlabs.com/api/v1/gas");
const { data, meta, error } = await res.json();
if (error) throw new Error(`${error.code}: ${error.message}`);
console.log(data);import os, requests
res = requests.get(
"https://farbeamlabs.com/api/v1/gas",
timeout=30,
)
body = res.json()
if "error" in body:
raise RuntimeError(body["error"]["code"])
print(body["data"])You can send this request now in the API playground.
#Response
This response is real. It was captured from the running API when this page was built. Arrays are cut to two items.
JSON
{
"data": [
{
"chain": "ethereum",
"name": "Ethereum",
"status": "ok",
"base_fee_gwei": 0.151861469,
"gas_price_gwei": 0.151869504,
"gas_used_ratio": 0.45533158333333335,
"priority_fee_microlamports": null,
"tps": null,
"head": 26343752,
"native_price_usd": 2410.37
},
{
"chain": "base",
"name": "Base",
"status": "ok",
"base_fee_gwei": 0.005,
"gas_price_gwei": 0.006,
"gas_used_ratio": 0.10656443,
"priority_fee_microlamports": null,
"tps": null,
"head": 53516847,
"native_price_usd": 2410.37
}
],
"meta": {
"request_id": "req_77330b76517d",
"as_of": "2026-11-04T20:10:50.215Z"
}
}#Fields
| Field | Type | Description |
|---|---|---|
data[].base_fee_gwei | number | Base fee of the last block read. Null on Solana. |
data[].gas_price_gwei | number | Result of eth_gasPrice. Null on Solana. |
data[].gas_used_ratio | number | Share of the block gas limit that was used, from 0 to 1. |
data[].priority_fee_microlamports | number | Solana only. 75th percentile of getRecentPrioritizationFees. |
data[].tps | number | Solana only. Transactions per second from the last performance sample. |