Visualizing EIP-1559
full above target
0 to no name tag
0 ETH
Block # 0
Block-by-Block
The animation above shows a block-by-block visual of the total amount of fees used in a block separating out the transaction fees as a percentage of the 30 million gas cap as well as the total base fees and tips paid in the block as a percentage of the transaction fees. The data was taken from converting an Etherscan CSV file for block numbers 19,874,197 to 19,874,237 from May 15th 2024.
Ethereum's
Gas Fee Mechanism
Ethereum's EIP-1559 is a fee pricing mechanism to help smooth out spikes in gas prices. It introduced a base fee that transactions need to pay that will get sent to a burner address when put into a block. This helps with not only gas spikes but also helps prevent sybil attacks with an additional benefit of helping reduce ETH issuance and at times even making ETH deflatioinary.
But how does it help with price spikes? Along with the base fee EIP-1559 also introduced a variable byte block size in favor of a fixed cap of 30 million gas units that can be put in a block. The price per gas unit is adjusted up or down based off the previous blocks usage. If usage was over half the gas cap (15 million) gas prices go up 125% to deter more transactions. The opposite happens in low netowrk use to incitivise more transactions. Always trying to pull usage to the target of 15 million gas units per block, as Vitalik put it...
Viewing Etherscan charts for network utilization and average gas limit used we can see positive results towards those goals. Reading the information on the latest blocks we can surmize from the numbers how some of these key metrics change on a per block basis. But how can we get a more intuitive sense of how the mechanism works? Let's take this spreadsheet of numbers and visualize some of key variables in a way to intuitivly understand how EIP-1559.
User Transactions
When a user submits a transaction on Ethereum the total fees are calculated by adding the base fee and tip together then muliplying the gas units needed for computation and storage. These transactions are picked up by validator nodes and put in the mempool for inclusion into a block. The following diagram dipicts a block in terms of gas units, tips and base fees to visualy show how EIP-1559 works as blocks are produced.