EIP-1559 – Understanding Max Priority Fee and Max Gas Fee Differences

eip-1559feesgas

What is the definition of max priority fee and max gas fee in EIP-1559 enabled Ethereum?

Best Answer

First, there is a Base Fee which is the minimum fee a transaction must pay to be a valid transaction. The Base Fee changes per block, depending on how full the previous block is. The Base Fee is burned so the block producer (miner/validator) does not receive any of it.

The Priority Fee is what a transaction would pay a block producer when the transaction is included in a block. The Max Priority Fee is a maximum because the block producer may be paid less. One way this can happen is by specifying a Max Gas Fee (a.k.a. Max Fee Per Gas), which is the total fee a transaction is willing to pay.

For example, if a transaction specifies Max Gas Fee = 9 and Max Priority Fee = 3, if Base Fee = 8, then 1 would be paid to the block producer (Max Gas Fee - Base Fee), and 8 would be burned (Base Fee). Such a transaction is only valid in a block whose Base Fee reaches 9 or less.

All the fees are per unit of gas, as EIP-1559 specifies: base_fee_per_gas, max_priority_fee_per_gas, max_fee_per_gas.

Related Topic