Ethereum gas

Ethereum gas

The eip-1559 proposal updates the reward mechanism of Ethereum, adding maxFeePerGasand maxPriorityFeePerGas; when the block is packaged, the block with the least priority Fee (priorityFee) in the block is used as the base fee (baseFeePerGas); the tip is used to pay the miners, and the base fee is destroyed.

maxFeePerGas: maximum cost per gas

maxPriorityFeePerGas: Tips for miners

official:

​:TransactionFee (fee) The actual fee paid for the transaction

​:MaxFeePerGas (maxFee) The maximum fee per gas

​:GasUsed fuel

​:GasPrice fuel price

​:BaseFeePerGas (baseFee) base fee

​:MaxPriorityFeePerGas (tip) tip paid

​:BurntFees The cost of destruction

​:TxnSavings The fee returned to the account

fee = GasUsed * (baseFee+tip)

TxnSavings = GasUsed*(maxFee-(baseFee+tip))

BurntFees = GasUsed * baseFee

GasPrice = tip + baseFee

Comparison with Ethereum browser data

reference

Guess you like

Origin blog.csdn.net/BXQ1120/article/details/125047467