zkSync Era Gas Tracker
Track live zkSync Era gas prices. Gas use includes pubdata, so transfers cost more gas units than on Ethereum.
Integrate live gas data
Copy a ready-to-use example and pull zkSync Era gas metrics directly into your tooling.
curl -sS -X POST https://api-zksync-era-mainnet-full.n.dwellir.com/<your-api-key> \-H "Content-Type: application/json" \-d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'
const response = await fetch('https://api-zksync-era-mainnet-full.n.dwellir.com/<your-api-key>', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({jsonrpc: '2.0',id: 1,method: 'eth_gasPrice',params: []})});const { result } = await response.json();console.log(`Gas price: ${parseInt(result, 16) / 1e9} gwei`);
import requestsDWELLIR_RPC = 'https://api-zksync-era-mainnet-full.n.dwellir.com/<your-api-key>'payload = {'jsonrpc': '2.0','id': 1,'method': 'eth_gasPrice','params': []}resp = requests.post(DWELLIR_RPC, json=payload)data = resp.json()print(f"Gas price: {int(data['result'], 16) / 1e9} gwei")
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/<your-api-key>');const feeData = await provider.getFeeData();console.log('Gas price', Number(feeData.gasPrice) / 1e9, 'gwei');
const Web3 = require('web3');const web3 = new Web3('https://api-zksync-era-mainnet-full.n.dwellir.com/<your-api-key>');const gasPrice = await web3.eth.getGasPrice();console.log('Gas price', web3.utils.fromWei(gasPrice, 'gwei'), 'gwei');
zkSync Era docs
Reference endpoints, guides, and examples.
View zkSync Era docsQuick start
Provision an API key and call your first method.
Get startedFAQs
How are transactions ordered on zkSync Era?
zkSync Era uses first-come, first-served ordering. Increasing maxPriorityFeePerGas does not buy earlier inclusion; the production endpoint currently reports a zero priority fee.
What makes up a zkSync Era transaction fee?
As an Arbitrum Nitro chain, the total fee combines L2 execution gas with a variable L1 data fee for publishing transaction data to Ethereum. The common-action estimates on this page show only the L2 execution component.
How should I set transaction fee fields?
Use the current gas price and leave enough maxFeePerGas headroom for base-fee movement. Raising the priority tip does not change first-come, first-served ordering.
When is a good time to transact?
Fees usually dip when network demand falls—overnight UTC and weekends for most ecosystems. Tracking congestion levels lets you catch those windows quickly.
How can I optimise contracts for gas?
Favour compact data structures, minimise storage writes, batch operations, and emit events instead of storing non-critical data to reduce per-transaction costs.
Expand beyond zkSync Era
Dwellir runs dedicated infrastructure across leading layer-1 and layer-2 ecosystems so you can scale without switching providers.
Arbitrum
Stay ahead of Arbitrum gas volatility with live priority fee insights.
Arc
Track live Arc gas prices. Arc charges gas in USDC, so fees read directly in dollars.
Avalanche
Check Avalanche C-Chain gas prices with failover RPC coverage.
Base
Monitor Base gas prices and block congestion in real time.
Berachain
Track live Berachain gas prices in BERA, base fee and priority tips.
Binance Smart Chain
Real-time BNB Smart Chain gas data with high-throughput RPCs.
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure