Ethereum gas fees explained: transaction fee equals gas used times gas price, with the base fee burned and the priority fee paid to the validator

Ethereum Gas Fees Explained: ETH, Gas, EIP-1559 and Failed Transactions

ETH & Gas: ETH's Roles, Gas Mechanics, Fees and Failed Transactions

Disclaimer: This article is for informational and educational purposes only and simplifies underlying technical concepts for clarity. It is not financial, investment, or security advice.

Every action on Ethereum comes at a cost. That cost is paid in ETH and measured in gas, which represents the computational work the network has to do.

Sending ETH, transferring a token, minting an NFT or swapping on a decentralised exchange all look like a single tap in a wallet. Behind each one, thousands of computers around the world execute the same instructions and record the result.

The relationship between ETH, gas and fees is central to understanding how Ethereum works and, ultimately, what it costs to use and build on the network. It can be summarised in one line:

Gas used how much work × Gas price cost per unit of work = Transaction fee paid in ETH Base fee portion burned (destroyed) Priority fee (tip) to the validator Sections 3 and 4 explain each side of the equation; Section 6 explains where the fee goes

In This Article, You'll Learn

  • ✓ The three roles ETH plays in the Ethereum network
  • ✓ What gas is, and why complex transactions use more of it
  • ✓ Why gas used and gas price should always be considered separately
  • ✓ How EIP-1559 splits fees into a burned base fee and a priority fee
  • ✓ How to read a wallet's fee estimate
  • ✓ What happens when a transaction fails or gets stuck

1. The Key Roles of ETH

ETH is the native asset of Ethereum. It has three important roles within the network.

ETH native asset Network fuel pays for computation Economic security staked by validators Digital asset held, traded, used in DeFi

1.1 ETH Is the Fuel for Using Ethereum

When a user sends ETH, transfers an ERC-20 token, mints an NFT, or interacts with a DeFi application, the transaction requires computational work from the Ethereum network. The user pays for that work in ETH.

For example:

  • Sending ETH requires network processing.
  • Transferring USDC requires the USDC smart contract to execute.
  • Minting an NFT requires a smart contract to create and record the NFT.
  • Swapping tokens on a DEX requires multiple smart contract operations.

The underlying actions are different, but all consume Ethereum's computational resources and therefore require fees. This is why ETH is often described as the fuel of the Ethereum network.

1.2 ETH Provides Economic Security for Validators

ETH also helps secure the Ethereum network through Proof of Stake. Validators stake ETH to participate in validating transactions and maintaining the network, and their staked ETH creates an economic incentive to follow Ethereum's rules.

Validators can earn rewards for participating correctly, while certain forms of misconduct can result in penalties, including slashing. ETH therefore has an important role in Ethereum's security, not just its operation.

Validator stakes ETH Follows the rules earns rewards Misbehaves penalised / slashed Honest behaviour is the best strategy Staked ETH puts the validator's own money on the line

1.3 ETH Is a Widely Used Digital Asset

ETH is also an asset that can be held, transferred, traded, used as collateral, or deployed across applications. For example, ETH can be:

  • Held in a wallet
  • Sent to another Ethereum account
  • Used as collateral in DeFi
  • Exchanged for other tokens
  • Wrapped into assets such as WETH
  • Staked to participate in Ethereum's proof-of-stake system

These uses are separate from its role as the network's native payment mechanism, but they reinforce ETH's importance across the Ethereum ecosystem.

2. What Is a Transaction Fee?

A transaction fee is the amount of ETH a user pays for having a transaction processed by Ethereum.

Whenever a transaction is submitted, Ethereum needs to perform some amount of computational work. The fee is the economic price of using those network resources, and the more computational work an operation requires, the more gas it generally consumes.

The amount the user ultimately pays depends on two things:

Transaction Fee = Gas Used × Gas Price

This relationship is the foundation for understanding Ethereum fees. To understand why one transaction costs more than another, we need to look separately at gas used and gas price.

3. Gas Used: How Much Work Does the Transaction Require?

3.1 What Is Gas?

Gas is Ethereum's unit for measuring computational work. It does not represent ETH itself.

Instead, gas measures how much computational effort is required to execute a transaction. A simple transaction requires relatively little work; a complex smart contract interaction can require much more. The exact gas consumed depends on what the transaction actually does.

A helpful analogy: gas is like the distance on a taxi meter, and the gas price is the rate per kilometre. The distance depends on the trip you take; the rate depends on how busy the city is.

3.2 Why Does Every Action Have a Gas Cost?

Ethereum charges for every action because it is a shared resource: without a price, it would be flooded, and the people who keep it running would not be paid.

Remember that every transaction is repeated on thousands of computers around the world, and its results are stored by all of them, permanently. That is what makes Ethereum trustworthy, but it also makes computation on Ethereum far more expensive than on an ordinary server. Fees exist for three reasons:

  1. To prevent spam and attacks. If actions were free, anyone could clog the network with millions of useless transactions. A fee, even a small one, makes that expensive.
  2. To stop programs that never end. Ethereum can run any program, including one stuck in an endless loop by mistake or on purpose. Because every step costs gas, a runaway program simply runs out of fuel and stops. This is one of Ethereum's most elegant design choices.
  3. To reward the people who run the network. Validators spend money on hardware and lock up ETH. Newly issued ETH, plus the tips users add to their fees, pays them for doing this honestly. (The main part of each fee is burned rather than paid to validators, as Section 6 explains.)
An endless loop cannot run forever: every step burns gas Gas limit: 100,000 Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Out of gas → execution stops

A useful comparison is a toll road. The toll keeps traffic manageable, pays for maintenance, and charges more for heavier vehicles that cause more wear.

Gas therefore acts as both a pricing mechanism and a resource-management mechanism.

3.3 Why Do Complex Transactions Use More Gas?

Not all Ethereum transactions require the same amount of work. Consider two transactions:

Transaction A Send 0.1 ETH from one account to another Transaction B Deposit collateral, borrow, swap, update several contracts One simple balance update low gas Many contract calls and state changes: much more gas

Transaction B involves substantially more computation and state changes, so it consumes more gas.

TransactionWhat Ethereum has to doGas used
ETH transferProcess a simple transferLower
Token transferExecute token contract logicHigher
DeFi swapExecute multiple contract operations and update stateHigher
Complex DeFi transactionExecute several interconnected operationsPotentially much higher

The important distinction is: gas used measures the amount of computational work required by the transaction.

Every step a contract performs has a gas cost set by Ethereum's rules. Simple arithmetic is cheap, while reading and especially writing to permanent storage is expensive, because every node has to keep that data.

Typical amounts of gas used look roughly like this (exact figures vary by app and contract):

Approximate gas used by common actions 0k 50k 100k 150k 200k Sending ETH 21,000 (fixed) Approving a token ~45,000 Sending an ERC-20 token 45k to 65k Minting an NFT 50k to 150k+ Swapping tokens 100k to 200k+ Deploying a contract off scale 1,000,000+ Solid bar = typical minimum; dashed bar = typical range. Contract deployment is often five times the scale shown.
ActionApproximate gas usedWhy
Sending ETH21,000 (fixed)The simplest possible transaction
Sending an ERC-20 token such as USDCAbout 45,000 to 65,000Runs the token contract and updates two balances
Approving a tokenAbout 45,000Writes one new allowance record
Swapping tokens on a trading appAbout 100,000 to 200,000+Several contracts, prices, and balances involved
Minting an NFTAbout 50,000 to 150,000+Creates a new record of ownership
Publishing a new smart contractOften 1,000,000 or moreStores the program's code permanently

Worked Example

A token swap uses 150,000 gas, and the gas price is 2 gwei. The fee is 150,000 × 2 = 300,000 gwei, which is 0.0003 ETH. If ETH is worth $3,000, that is about $0.90.

If the network gets busy and the gas price rises to 40 gwei, the same swap would cost 0.006 ETH, or about $18. Same work, different price.

Same swap, same gas used, different gas price 150,000 gas swap × Quiet network: 2 gwei = 0.0003 ETH ≈ $0.90 150,000 gas swap × Busy network: 40 gwei = 0.006 ETH ≈ $18 ETH price assumed at $3,000

4. Gas Price: How Much Does Each Unit of Work Cost?

Gas price tells us how much you pay for each unit of gas used by a transaction. It is generally expressed in gwei, rather than ETH, because gas prices are usually very small amounts.

Before going further, it helps to understand the units Ethereum uses:

1 ETH balances and prices × 1 billion 1,000,000,000 gwei gas prices × 1 billion 10¹⁸ wei used by software 1 gwei = one billionth of an ETH; 1 wei is the smallest possible unit
UnitValue in ETHWhere you'll see it
ETH1ETH balances, payments and asset prices
gwei0.000000001 ETH (one billionth)Gas prices and fee settings
wei0.000000000000000001 ETHSmallest unit; primarily used behind the scenes by software

When a wallet or website says "gas price: 2 gwei," it means each unit of gas costs 2 billionths of an ETH.

4.1 What Determines the Gas Price?

Each block has limited space, so when more people want in than can fit, the price of getting in goes up.

A new Ethereum block is produced every 12 seconds, and each block can only hold a certain total amount of gas. This limit is set by the validators collectively and has been raised several times as the network's software has improved, but at any moment it is fixed. Block space is scarce, like seats on a flight.

Quiet network Block (fixed gas limit) Room for everyone: price stays low Busy network Block (fixed gas limit) Waiting in line Competition for space: price climbs

When demand is low, there is room for everyone and the price stays low. When demand spikes, people compete for limited space and the price climbs, just as airline tickets cost more during holidays or ride-hailing prices surge during rush hour.

What causes spikes? Usually a burst of excitement where many people want to act at the same moment:

  • A popular NFT launch, where thousands try to mint in the same few minutes
  • Sharp market moves, when traders rush to buy, sell, or avoid having their loans closed
  • A new token or app going viral

History offers vivid examples. In late 2017, the CryptoKitties game became so popular that it slowed the whole network. During the boom of 2021, a single token swap could cost $50 or more at peak times, pricing out ordinary users.

The good news is that things have changed a lot since then. The rise of Layer 2 networks (Module 9) has moved much of the everyday activity off the main network, and fees on Ethereum itself have often been very low in recent years. But the underlying rule still applies: when demand for block space surges, prices rise.

5. Why Gas Used and Gas Price Should Be Considered Separately

This distinction is one of the most important concepts in understanding Ethereum fees. A transaction can become more expensive because the transaction itself requires more work (gas used increases), or because Ethereum is more expensive to use at that moment (gas price increases). Or both can happen at the same time.

Gas price Low (quiet network) High (busy network) Gas used Low (simple) High (complex) Low fee Simple transaction, quiet network Moderate / high fee Simple transaction, busy network Moderate fee Complex transaction, quiet network Very high fee Complex transaction, busy network The same transaction can land in different boxes depending on when it is sent

This distinction becomes particularly useful when diagnosing transaction costs. If a DeFi transaction is expensive, the question is not simply "Why is gas expensive?" Instead, ask:

Did the transaction require a lot of gas, or was the price of gas high at that time?

6. The 2021 Fee Reform: EIP-1559

Ethereum's fee system was significantly changed in 2021 through EIP-1559. Before this reform, users primarily competed by submitting bids for gas, so the fee market could be difficult to predict, particularly during periods of high demand.

EIP-1559 introduced a more structured mechanism built around two key components, the base fee and the priority fee, which changed how Ethereum determines and distributes transaction fees.

Before 2021: blind auction After EIP-1559: posted price + tip Bid 80 gwei? Bid 120 gwei? Bid 95 gwei? Highest bids win; everyone guesses what others will pay Pay what you bid, not what was needed Base fee: one price for everyone set by the protocol, then burned + Priority fee (tip): small extra paid to the validator Accept the posted price or wait

6.1 Base Fee

The base fee is the protocol-determined minimum fee per unit of gas required for a transaction to be included in a block. It changes according to network demand: when demand is high, the base fee increases; when demand falls, the base fee decreases. The base fee therefore reflects the underlying demand for Ethereum's block space.

Importantly, the base fee is not paid to the validator. It is burned, which means it is permanently removed from circulation.

6.2 Priority Fee

The priority fee, often called the tip, is an additional amount offered to the validator. The user is effectively saying:

"I will pay the protocol's required base fee, plus this additional amount to the validator."

The priority fee can therefore influence how attractive a transaction is for inclusion, particularly when there is competition for block space. The validator receives the priority fee.

A note on block builders: in practice, most Ethereum blocks are assembled by specialised block builders, who collect the tips and pay the validator for proposing their block. Either way, the priority fee ultimately rewards the block's producer, while the base fee is always burned.

6.3 What Happens to the Transaction Fee?

Under the EIP-1559 model, the user's fee can be understood as having two major components:

Total gas price = Base fee + Priority fee
Transaction fee = Gas used × (Base fee + Priority fee)

In practice, your wallet also sets a maximum fee per gas. You pay the current base fee plus your tip, up to that maximum, and any amount you allowed above what was actually needed is never charged.

So imagine your transaction uses 50,000 gas, and Ethereum's current fees are (a busy-network example): base fee = 50 gwei and priority fee = 2 gwei. Your total gas price is 52 gwei, and your transaction fee is:

50,000 × 52 gwei = 2,600,000 gwei = 0.0026 ETH

But the 0.0026 ETH is split economically:

Where the 0.0026 ETH goes Base fee: 50,000 × 50 gwei = 0.0025 ETH 96% of the fee Burned: removed from supply Tip: 0.0001 ETH to the validator
ComponentAmountWhere it goes
Base fee0.0025 ETHBurned
Priority fee0.0001 ETHValidator
Total0.0026 ETH

So: base fee = required network charge → burned, and priority fee = additional tip → validator.

6.4 The Economics Behind EIP-1559

The 2021 fee reform (EIP-1559) answers three economic questions: how should a scarce resource be priced, who should be paid for providing it, and what should happen to the money? Each part of the fee answers one of these.

The resource: block space. Every 12 seconds, Ethereum produces a block with limited capacity. Block space is a perishable, scarce good, like airline seats or hotel rooms: unused space in one block can't be saved for the next. The challenge is pricing it fairly when demand swings wildly from minute to minute.

The problem with the old auction. Before 2021, Ethereum used a first-price auction: everyone submitted a sealed bid, and the highest bids won. Economists know this design has well-known flaws:

  • Overpaying. You pay what you bid, not the minimum needed to get in. Since nobody knows what others will bid, people either overpay to be safe or underbid and wait.
  • Strategic guessing. The best bid depends on predicting everyone else's bid, which is hard for experts and nearly impossible for ordinary users.
  • Volatility. Prices jumped erratically from block to block even when overall demand was steady.

The result was a market that rewarded sophistication rather than simply willingness to pay.

The base fee: a posted price that adjusts like congestion pricing. EIP-1559 replaced the auction with a posted price, like a price tag in a shop. The network sets the base fee, and everyone in a block pays the same one. You no longer have to guess; you either accept the price or wait.

The clever part is how the price is set. Each block has a target size of half its maximum. If a block comes in above target, the base fee rises by up to 12.5% for the next block; if it comes in below, it falls. This is a feedback loop, similar to congestion pricing on toll roads: when traffic is heavy, the toll rises until enough people choose to wait, and when roads are empty, it falls.

The base fee feedback loop Block fuller than target Base fee rises (up to +12.5%) Fewer people willing to pay Blocks shrink back to target size if demand rises again Below target, the same loop runs in reverse and the base fee falls Each block: every 12 seconds

Two economic features make this work well. First, the elastic block size acts as a buffer. Because blocks can temporarily stretch to twice the target, short bursts of demand are absorbed instead of instantly causing a price spike. Second, the base fee discovers the market price over time. Because 12.5% compounds quickly, sustained demand above capacity can roughly double the price every minute and raise it about tenfold within four minutes, until demand matches supply again.

Base fee if every block is completely full (starting at 10 gwei) 0 30 60 90 120 Base fee (gwei) 0 1 min 2 min 3 min 4 min Time (5 blocks ≈ 1 minute) 10 gwei 18 gwei 32 gwei 59 gwei 105 gwei

The priority fee: paying for the marginal service. If the base fee sets the price of space, why tip at all? The tip covers two things. In normal conditions, it compensates the validator for the small extra cost and risk of including your transaction, so a small tip is enough; in a typical quiet period it is little more than a courtesy.

During sudden spikes, when demand exceeds even the doubled block size before the base fee can catch up, the tip becomes a mini-auction again. Those who value fast inclusion most can outbid others. So EIP-1559 doesn't abolish auctions entirely; it confines them to the moments when they're genuinely needed.

Burning: making the system honest. Burning the base fee is the most important and least intuitive part. The core reason is incentive compatibility: designing rules so that following them honestly is also each participant's best strategy.

If the base fee went to validators Because the base fee is burned Fill blocks with own fake transactions Base fee pushed up for everyone Validator collects the higher fees Inflating the base fee earns nothing Validator's fee income = tip only No reason to game the price

If the base fee went to the validator who produced the block, validators would have reasons to manipulate it. They could fill blocks with their own fake transactions to push the base fee up for everyone, then collect the higher fees.

By destroying the base fee, no one profits from inflating it, so no one has a reason to game it. The validator's fee income from a transaction comes only from the tip, which the user chooses, so there is nothing to gain from pushing the base fee up. Economist Tim Roughgarden, who analysed EIP-1559 formally in 2020, showed that this design makes honest behaviour the best strategy for both users and validators under normal conditions.

6.5 Burning and ETH Supply

Burning the base fee creates a direct link between Ethereum network usage and ETH supply. When users consume Ethereum's block space, they pay base fees, and those base fees are burned. Therefore:

More network activity → more gas consumed → potentially more base fees paid → more ETH burned

The amount burned depends on both how much gas is used and the base fee at the time, so periods of high network demand can result in significant ETH burning.

However, this does not mean that ETH automatically becomes deflationary whenever Ethereum is busy. Ethereum is simultaneously creating new ETH to reward validators, so there are two opposing flows:

New ETH issued to validators + Total ETH supply ETH in circulation − Base fees burned Net supply change = ETH issued − ETH burned
Net ETH supply change = ETH issued − ETH burned
  • If issuance is greater than burning, ETH supply increases.
  • If burning is greater than issuance, ETH supply decreases.
  • If they are roughly equal, supply remains relatively stable.

6.6 The Trade-offs and Debates

The design isn't free of criticism, and these make good discussion points:

  • Security budget. Burning means validators earn less from fees. Under proof of stake, security is mainly paid for by new issuance, so this matters less than it would have under mining, but some economists worry about long-term validator income if issuance is reduced.
  • Value capture with Layer 2s. As activity moves to Layer 2s, fewer fees are burned on the main network. This has fuelled debate about whether ETH holders still benefit enough from Ethereum's growth.
  • Not a fix for high demand. EIP-1559 makes fees more predictable, not cheaper. When demand exceeds capacity, prices still rise. The real fix for cost is more capacity, through Layer 2s and higher block limits.
  • Extended to blob space. The 2024 Dencun upgrade added a separate fee market for the data that Layer 2s post to Ethereum ("blobs"), with its own base fee and burn. This shows the design was considered successful enough to reuse.

7. Reading a Transaction Fee Estimate

When you use a wallet, you usually do not calculate the fee manually. The wallet estimates the transaction's gas requirement and the prevailing gas prices, then presents an expected fee. You might see:

Confirm transaction Estimated network fee 0.002 ETH Gas limit 60,000 Estimated gas used ≈ 48,000 Base fee 38 gwei Priority fee 2 gwei Max fee per gas 60 gwei Confirm What most people see The details behind it Illustrative figures; exact fields and labels vary by wallet

Depending on the wallet, you may also see:

FieldWhat it meansWhy it matters
Gas limitThe maximum amount of gas the transaction is allowed to consumeSets a safety boundary for the transaction
Estimated gas usedThe wallet's estimate of how much gas the transaction will actually consume if it executes successfullyHelps estimate the transaction's cost
Base feeThe protocol-determined price per unit of gas required for the transaction to be includedReflects demand for Ethereum's block space; this portion is burned
Priority feeThe additional amount per unit of gas offered to the validatorGives the validator an incentive to include the transaction
Maximum fee per gasThe maximum total price per unit of gas you are willing to pay, including base fee and priority feeProtects you from paying more than your specified maximum if the base fee changes before inclusion
Estimated total feeThe wallet's estimate of the total ETH the transaction is expected to costShows you approximately how much ETH you need
Max fee per gas is a ceiling, not the price you pay Base fee 38 gwei (burned) Not charged Tip 2 gwei 0 Max fee: 60 gwei You pay base fee + tip (40 gwei here); the remaining 20 gwei of headroom is never taken

The terminology can initially look confusing, but the underlying question is straightforward:

How much computational work will this transaction require, and how much will each unit of that work cost?

A useful way to interpret the estimate is:

  • Step 1: Look at the gas requirement. How much work is the transaction expected to perform?
  • Step 2: Look at the gas price. How expensive is Ethereum block space at that moment?
  • Step 3: Look at the resulting fee. How much ETH will you actually need to pay?

8. What Happens When a Transaction Fails?

A transaction can fail for two common reasons:

  1. It ran out of gas because the gas limit was set too low for the work required.
  2. The contract refused it, perhaps because a sale sold out, or you lacked enough tokens or approval.

When this happens, everything the transaction tried to do is reversed. Your tokens stay where they were. But you still pay for the gas used up to the point of failure. If the contract refused it, that is only the gas used before it stopped. If it ran out of gas, that is the entire gas limit, because all of it was used up. The validators did the work of processing it, just as a taxi still charges if you get out halfway. Failed transactions show clearly on Etherscan, usually with a short reason.

Same 100,000 gas limit, four different outcomes Succeeds 70,000 gas charged Pays for 70,000 used; 30,000 unused is not charged Contract refuses 30,000 gas charged Pays for 30,000 used before it stopped; changes reversed Runs out of gas 100,000 gas charged Pays for the full 100,000; changes reversed Invalid, never included 0 gas charged Rejected before entering a block: no fee
Not every rejected transaction costs money, though. If a transaction is invalid before it is ever included in a block (for example, the account does not hold enough ETH to cover the maximum fee, or the nonce is wrong), it is simply rejected and no fee is paid.

9. When a Transaction Gets Stuck

A transaction can remain pending when it has not yet been included in a block. This can happen during periods of high demand if the transaction's fee settings are not attractive enough compared with other transactions competing for block space.

For transactions sent from the same account, Ethereum processes them according to their nonce, which establishes their order. A pending transaction can therefore hold up later transactions from that account.

Nonce: a sequential number assigned to each transaction from an account, ensuring that transactions are processed in the correct order and that the same transaction cannot be processed twice.
One low-fee transaction holds up the ones behind it Tx 1 · nonce 7 pending: fee too low Tx 2 · nonce 8 waiting behind nonce 7 Tx 3 · nonce 9 waiting behind nonce 8 Replacement · nonce 7 same nonce, higher fee Confirms in a block: nonce 7 used, Tx 2 and Tx 3 can follow Only one transaction per nonce can ever confirm. Whichever is included first wins; if the original slips in first, the replacement is dropped instead.

Most wallets provide two ways to resolve this, both of which reuse the same nonce:

  • Speed up: The wallet creates a replacement transaction with the same nonce but a higher fee, making it more attractive for inclusion. Most nodes only accept a replacement if its fee is meaningfully higher, typically by at least 10%. Only one transaction with a given nonce can ever confirm: if the replacement confirms first, the original is dropped, but if the original happens to be included first, the replacement is dropped instead.
  • Cancel: The wallet creates a replacement transaction with the same nonce, typically sending 0 ETH to your own address, with a higher fee. If confirmed, this effectively replaces the original transaction, preventing the original action from being executed.

Both replacement transactions require paying a network fee because they are themselves transactions that must be processed by Ethereum.

The key idea: a pending transaction is not "stuck" inside the blockchain. It is generally waiting to be included, and a replacement transaction using the same nonce can supersede it.

10. A Practical Mental Model

When thinking about an Ethereum transaction fee, work through the following sequence:

1. What am I asking Ethereum to do? Sending ETH is simple; complex contracts need far more computation 2. How much gas will it require? Depends on the transaction's underlying operations 3. What is the current price of gas? Depends on network demand and the fee market 4. What is the resulting fee? Gas used × gas price 5. Where does the fee go? Base fee → burned · Priority fee → validator 6. What if it fails? State changes revert, but the gas already used is still paid

This sequence gives you a complete picture of why an Ethereum transaction costs what it does.

11. Conclusion

For users, gas is the cost of accessing Ethereum's computational infrastructure. For businesses, gas is better understood as a variable cost of running blockchain-enabled functionality.

The fundamental principle is simple: Ethereum is a shared computational network, and gas is the mechanism that measures and prices the use of that network.

Key Takeaways

  • ETH has three major roles: network fuel (it pays for computation), security asset (it is staked by validators) and digital asset (it is widely held, traded and used across applications).
  • The transaction fee is the amount of ETH paid for using Ethereum's computational resources: Transaction Fee = Gas Used × Gas Price.
  • Gas used is how much computational work the transaction requires, driven by its complexity, smart contract logic, number of operations and state changes.
  • Gas price is how much each unit of that work costs, driven by demand for Ethereum's limited block space.
  • A transaction can become more expensive because it requires more computation, because the network is busy, or both.
  • Since EIP-1559, the base fee is burned and the priority fee goes to the validator; net ETH supply change = ETH issued − ETH burned.
  • A failed transaction can still consume gas because Ethereum must execute it to determine that it should fail. The intended state changes are rolled back, but the computational resources already consumed cannot be recovered.
Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *