What is the Gas Fee Market?
The gas fee market in Ethereum's blockchain is a mechanism that determines the cost of executing transactions. Under EIP-1559, this market has been restructured to be more dynamic and efficient, with two main components: base fees and priority tips.
Base fees are set by the network based on supply and demand for block space, while priority tips represent additional fees paid by users to have their transactions included in a block sooner.
How Does EIP-1559 Work?
EIP-1559 introduces a base fee that adjusts based on the network's demand for block space. When there is high demand, the base fee increases; when demand decreases, it drops. This dynamic adjustment helps in managing congestion and ensures fair distribution of resources.
Priority tips allow users to pay extra fees to prioritize their transactions over others with lower priority tips. These tips are refunded as a reward to miners who include these higher-priority transactions first.
Why Does It Matter?
The introduction of EIP-1559 has several benefits, including reducing the unpredictability of transaction costs and improving network efficiency. By separating base fees from miner rewards, it also reduces inflation and makes the Ethereum network more sustainable.
For users, this means more predictable and lower overall transaction costs, as well as a clearer understanding of when their transactions will be included in a block.
Real-World Examples
During periods of high network congestion, such as during major events or DeFi flash loans, the base fee can spike significantly. Users who need to execute their transactions quickly might opt for higher priority tips, leading to increased costs.
Conversely, during quieter times, users can take advantage of lower base fees and potentially even receive refunds if they set a high enough tip but their transaction was not included in a block.
Frequently asked questions
How does the base fee change over time?
The base fee adjusts dynamically based on supply and demand for block space. If more transactions are submitted than can fit in a single block, the base fee increases to reduce congestion; if there is excess capacity, the base fee decreases.
What happens if I set my transaction's max-fee too low?
If your transaction’s max-fee (the maximum amount you are willing to pay) is lower than the current base fee, it may not be included in a block until the base fee drops. This can result in delayed confirmation times or even failure if the network remains congested.
Can I lose money by setting my priority tip too high?
Setting your priority tip too high does not directly cost you more than what you agreed to pay, but it might be refunded as a reward to miners who included your transaction. If the network is less congested and your transaction gets included quickly, you may receive this refund.
How do refunds work in EIP-1559?
Refunds occur when a user sets their priority tip higher than necessary for their transaction to be included. If the network becomes less congested and miners include transactions with lower tips, any excess paid as a priority tip is refunded back to the user.
Try it live
Everything above runs in your browser — open Gas Fee Market: EIP-1559 Mempool Simulator and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Gas Fee Market: EIP-1559 Mempool Simulator simulation