User Avatar

Juan David 🚢

♦️Understanding Ethereum

2y ago

Writing about Ethereum, education and open source. Co-founder at ethkipu.org

Gas Fee as the Fuel of a Road Trip
by juandav.eth

Imagine you’re embarking on a road trip. You need fuel to get to your destination, right? On Ethereum, gas fees are like fuel. They power every action you take, from simple transactions to complex smart contracts. Let’s break it down in relatable terms.

Gas is a unit measuring the computational effort required to execute operations on Ethereum. Think of gas as the energy your car needs to move. Gas fees, then, are the total cost of that energy, calculated as:

Gas Used * Gas Price.

Transaction complexity is similar to planning a road trip with multiple stops and a step road. Simple ETH transfers are like a straight highway drive, while deploying a smart contract is a cross-country journey crossing mountain ranges, requiring more Gas Used.

Network congestion is like a traffic jam. During peak times, like popular token launches or a new NFT collection. Everyone’s trying to get through the same road, causing a higher Gas Price, as users compete to get their transactions processed.

Imagine you’re calculating the total cost of your road trip. The formula is:

Total Fee = Gas Limit * (Base Fee + Tip)

Introduced with EIP-1559, the base fee is a mandatory fee that burns a portion of the transaction fee, reducing the total supply of ETH. Think of it as a toll fee on a busy bridge that adjusts dynamically to control traffic flow.

The tip is an optional fee to incentivize miners to process your transaction faster. It's like paying to be on a highway.

Nowadays Ethereum is known as the L1, the layer where you have to pay for using a secure road. Sometimes it's expensive, hope you can understand how much the road trip will cost.