
Gas across seven chains
Snapshot time: 2026-11-04T19:20:05Z. One call to GET /gas. This note converts a gas price into a USD cost, because gwei figures cannot be compared across chains that have different native assets.
#The call
curl -s "https://farbeamlabs.com/api/v1/gas"const { data } = await (await fetch("https://farbeamlabs.com/api/v1/gas")).json();
for (const c of data) {
if (c.gas_price_gwei == null) continue;
const usd = (gas) => gas * c.gas_price_gwei * 1e-9 * c.native_price_usd;
console.log(c.chain, usd(21000).toFixed(6), usd(65000).toFixed(6), usd(150000).toFixed(6));
}import requests
for c in requests.get("https://farbeamlabs.com/api/v1/gas", timeout=30).json()["data"]:
if c["gas_price_gwei"] is None:
continue
usd = lambda gas: gas * c["gas_price_gwei"] * 1e-9 * c["native_price_usd"]
print(c["chain"], f"{usd(21000):.6f}", f"{usd(65000):.6f}", f"{usd(150000):.6f}")#Raw values
| Chain | Base fee (gwei) | Gas price (gwei) | Gas used ratio | Native asset | Native price |
|---|---|---|---|---|---|
| Ethereum | 0.139302732 | 0.139312767 | 0.4348 | ETH | $2,424.15 |
| Base | 0.005 | 0.006 | 0.1001 | ETH | $2,424.15 |
| BNB Chain | 0 | 0.05 | 0.1133 | BNB | $716.91 |
| Arbitrum One | 0.02004 | 0.02004 | see below | ETH | $2,424.15 |
| OP Mainnet | 0.000000318 | 0.001000318 | 0.1790 | ETH | $2,424.15 |
| Polygon PoS | 253.836018061 | 294.070208314 | 0.0870 | POL | $0.096456 |
Solana has no gwei. At the same moment, the priority_fee_microlamports value was 0, tps was 2,232, and SOL was $95.35.
Polygon had the highest gwei figure by a wide margin, at 294. POL cost $0.096456, so that gwei figure means little by itself.
#Cost in USD
The formula for EVM chains:
cost_usd = gas_units * gas_price_gwei * 1e-9 * native_price_usdGas units are round examples. 21,000 is the fixed cost of a plain native transfer. 65,000 and 150,000 are illustrative figures for an ERC-20 transfer and a simple swap. Real contracts use different amounts.
| Chain | Native transfer (21,000 gas) | Token transfer (65,000 gas) | Swap (150,000 gas) |
|---|---|---|---|
| OP Mainnet | $0.000051 | $0.000158 | $0.000364 |
| Base | $0.000305 | $0.000945 | $0.002182 |
| Polygon PoS | $0.000596 | $0.001844 | $0.004255 |
| BNB Chain | $0.000753 | $0.002330 | $0.005377 |
| Arbitrum One | $0.001020 | $0.003158 | $0.007287 |
| Ethereum | $0.007092 | $0.021951 | $0.050657 |
Worked example for Polygon: 21,000 x 294.070208314 x 1e-9 x 0.096456 = $0.000596.
#Solana
A Solana fee has a base part, charged per signature, and an optional priority part, charged per compute unit. The base fee is 5,000 lamports per signature, or 0.000005 SOL. This value is a protocol constant and does not come from the API.
5,000 lamports * 1e-9 * $95.35 = $0.000477 per signatureThe API value for the priority fee is the 75th percentile of getRecentPrioritizationFees. It read 0 at the snapshot, and a busy account may need more. So $0.000477 is a lower bound for a one-signature transaction.
#The L2 data fee
To see a real total, use transaction lookup on a real transaction. It reports fee from the receipt effectiveGasPrice and gasUsed. That value can also leave out the data fee on these chains. The explorer link in the response shows the full amount.
#Reading the fields
| Field | Note |
|---|---|
base_fee_gwei | From the last block read. BNB Chain read 0 at this snapshot, while eth_gasPrice returned 0.05 |
gas_price_gwei | Result of eth_gasPrice from one RPC node. It is a suggestion from that node, not a market average |
gas_used_ratio | gasUsed / gasLimit of the last block read |
The Arbitrum gas_used_ratio read 0.00000000087. Arbitrum blocks report a very large gasLimit, so this ratio does not measure how full a block is. Ignore it on that chain.
#Method
- Call
/gasonce. - Apply the formula to each EVM row with three gas amounts.
- Compute the Solana base fee from the protocol constant and the SOL price in the same response.
#Limits
- This is one moment. Fees move from block to block, and they can differ by orders of magnitude on a busy day. This note cannot say what is typical.
- Poll intervals differ, from 12 to 30 seconds, so the blocks behind these rows are not from the same instant.
- The gas units are examples and not measurements.
- L1 data fees are not included.
- Native prices come from CoinGecko, and are refreshed about once a minute.
See the current values in the gas and fees tool, or read GET /gas.