Verification checklist
- Read the type first. Only a 0x02 transaction stores a max fee and a tip cap as separate fields. A legacy gasPrice is copied into both.
- Write the price paid as min(tip cap, max fee minus base fee) plus the base fee. Do not replace that line with gas used times the max fee.
- If the max fee is below the block's base fee, the reference implementation rejects the transaction. Do not record it as paid at the cap.
- The next base fee is an integer step from the parent. The increase divides by 8 and is at least 1. A full parent at 100 moves by 12, not by 12.5.
1. The cap is a balance test. The receipt uses the effective price
The number a confirmation screen invites into a note is a large "max fee." For an EIP-1559 type 0x02 transaction, that figure is usually gasLimit times maxFeePerGas. The reference implementation does use it as a balance assertion: after the transferred value is deducted, the signer must still hold at least gasLimit times maxFeePerGas. That is a test that the worst case is affordable. It is not the fee on the receipt.
The same implementation then prices the gas. The priority fee per gas is min(maxPriorityFeePerGas, maxFeePerGas minus baseFeePerGas). The effective gas price is that tip plus the base fee. The pseudocode debits gasLimit times the effective price and refunds unused gas at the same effective price, so the net is gasUsed times the effective price. The base fee is burned. The validator receives only gasUsed times the tip. The GASPRICE opcode (0x3a) must return this effective price, so a contract that reads it does not see the 50 the user typed.
A usable note therefore keeps three lines. The balance test is gasLimit times the cap. The net fee is gasUsed times the effective price. The validator's income is what remains after the burn. Saving only the wallet popup leaves all three uncomputed.
2. Teaching case: times 50 writes 1050000, the formula returns 294000
The teaching transaction is not a chain read from 23 October 2026. The 0x02 fields are integers in gwei: maxFeePerGas is 50, maxPriorityFeePerGas is 2, and the including block's baseFeePerGas is 12. One gwei is 10^9 wei, and every product below is finished in gwei before any conversion. gasLimit is 100000. A simple transfer uses 21000 gas. ethereum.org's gas page states that 21000 figure and works an unbound example, 21000 times (10 + 2) = 252000 gwei, in which the cap does not cut the tip. The set 50, 12, 2 is a different set, chosen so the cut and the uncut cases can sit side by side.
While the cap does not bind, the tip is min(2, 50 minus 12) = 2 and the effective price is 14. Then 21000 times 14 = 294000 gwei. Of that, 21000 times 12 = 252000 gwei is burned and the validator receives 21000 times 2 = 42000 gwei. Gas used times the cap is 21000 times 50 = 1050000 gwei. The ratio 1050000 / 294000 is 25/7. A note that says the gas cost 1050000 gwei has written the receipt 25/7 times too high. Multiplying by the tip alone is the other error: 21000 times 2 = 42000 gwei, and 294000 / 42000 = 7, so the receipt is written as one seventh of itself and the base fee disappears.
| Reading | 0x02, base fee 12 | 0x02, base fee 49 | Legacy gasPrice 50, base fee 12 |
|---|---|---|---|
| Price paid per gas | 14 | 50 | 50 |
| Net fee on 21000 gas | 294000 | 1050000 | 1050000 |
| Validator receives | 42000 | 21000 | 798000 |
| Burned | 252000 | 1029000 | 252000 |
The balance test is a separate line. 100000 times 50 = 5000000 gwei. Against the net fee of 294000, the ratio is 2500/147, about 17.01. Recording the popup's 5000000 as spent treats gas that was never consumed as consumed. In the reference implementation the unused-gas refund is unused gas times the effective price: (100000 minus 21000) times 14 = 1106000 gwei. Refunding that unused gas at the cap instead writes 79000 times 50 = 3950000 gwei. Both paths can be made to finish at a net of 294000, and neither intermediate line is the fee. The check is the net: gasUsed times the effective price.
3. The cap can cut the tip. A base fee above the cap keeps the transaction out
Keep the same 0x02 transaction and set the base fee to 49. The tip is min(2, 50 minus 49) = 1, and the effective price is 50. The cap is fully used, but the validator is not paid the tip cap of 2. The validator receives 21000 times 1 = 21000 gwei, 21000 times 49 = 1029000 gwei is burned, and the net is 1050000 gwei. Writing "base fee plus the tip cap," 21000 times (49 + 2) = 1071000 gwei, invents 21000 gwei. That gap is the 1 gwei the cap removed. ethereum.org says the max fee must exceed the base fee plus the tip, and that the difference is refunded. That sentence describes a tip the cap did not cut. The reference implementation includes a transaction when maxFeePerGas is at least the base fee, then shortens the tip to what remains. A cap of 50 does not exceed 49 + 2, and the transaction is still valid. The tip is 1.
Raise the base fee to 51 and the assertion fails: maxFeePerGas is below baseFeePerGas. The reference implementation does not put the transaction in a block, and there is no receipt that says it paid 50. A note that copies the cap from a transaction that never landed has recorded a rejected ceiling. The next attempt reads the base fee of the block that actually includes it. It does not reuse 12 or 49.
The base fee's own next step is integer arithmetic, not a spoken percentage. In the reference implementation, BASE_FEE_MAX_CHANGE_DENOMINATOR is 8 and ELASTICITY_MULTIPLIER is 2. When the parent used more gas than its target, the delta is max(parent base fee times the excess divided, in integers, by the target and then by 8, or 1). A full parent has an excess equal to the target, so the delta is max(parent base fee floor-divided by 8, 1). A parent base fee of 100 moves by 12, and the next base fee is 112. The 12.5 percent table that prints 112.5 is a percentage illustration, not the output of that integer division. A full parent whose base fee is 12 moves by max(12 floor-divided by 8, 1) = 1, so the next base fee is 13, not 12 times 1.125 = 13.5. An empty parent whose base fee is 7 takes the decrease branch, which has no floor of 1: 7 floor-divided by 8 is 0, and the base fee stays 7. Writing "every block moves 12.5 percent" invents fractional gwei on a small base.
4. A legacy gasPrice pays the whole 50
When the reference implementation normalizes a legacy transaction, both maxPriorityFeePerGas and maxFeePerGas become the gasPrice. With a base fee of 12 and a gasPrice of 50, the tip is min(50, 50 minus 12) = 38 and the effective price is 50. The sender pays the whole gasPrice, not the base fee plus some separately typed 2. Then 21000 times 50 = 1050000 gwei, the validator receives 21000 times 38 = 798000 gwei, and the burn is still 252000 gwei. Set beside the type 0x02 transaction from the first section, both notes contain a 50, and the nets are 1050000 against 294000, again 25/7. The EIP says legacy transactions do not benefit directly from the new pricing, because the gasPrice is consumed between the base fee and the priority fee.
A printed 50 gwei therefore needs a type before it needs a multiplier. On a 0x02 transaction, 50 can be the cap while the price paid is 14. On a legacy transaction, 50 is the price paid. Substituting a legacy effective price into the 0x02 formula, or a 0x02 cap into a legacy receipt, prices a different transaction. This note does not price type-3 blob gas. That is a separate meter, and it is also a different question from whether an L2 wallet's gas row is the whole receipt. The check here is the execution-gas cap against the effective price.
5. A screen: match the type and the block, then multiply
The teaching screen is ordered. First, read the type. For 0x02, record maxFeePerGas and maxPriorityFeePerGas. For a legacy transaction, record gasPrice and copy it into both fields the way the reference implementation does. Second, read baseFeePerGas from the block that included the transaction, not a spoken increase from the parent and not a wallet's forecast of the next block. Third, if the max fee is below that base fee, stop at "not included" and do not write a price paid. Fourth, compute the tip and the effective price, then multiply by gasUsed. Gas limit times the cap stays in the balance-test column. Fifth, split the burn from the validator: the burn is gasUsed times the base fee, the validator receives gasUsed times the tip, and the two must sum to the net.
The screen does not say whether a cross-chain quote matches the amount that arrives, and it does not say how many times an exchange's posted withdrawal fee exceeds on-chain gas. Those notes have their own columns. It also does not treat an L2 sequencer's gas row as a mainnet receipt. Passing once means this transaction's execution-gas net is explained by the effective price. The next block has its own base fee, and the next transaction reads it again.
The minimum fields another researcher can replay are: transaction hash, type, gasLimit, gasUsed, maxFeePerGas, maxPriorityFeePerGas or the legacy gasPrice, the including block number and its baseFeePerGas, the tip per gas, the effective price, the net fee, the burn, the validator's income, and the balance test gasLimit times maxFee. Stay in one of gwei or wei. A note missing the base fee or the type stops at "formula incomplete." Holding a small amount of ETH in order to compare a wallet popup with the receipt belongs in a fee footnote. It does not belong in the judgment of whether the effective price explains the net.
6. Write the type, the base fee, and both caps before naming a price
The weak sentence is "I set 50 gwei, so this transaction paid 50." A useful one is "type; max fee; tip cap or gasPrice; base fee of the including block; effective price; gas used; net fee; how much burned and how much the validator received." The cap, the effective price, and the tip the validator actually receives are three numbers. In the set with a base fee of 12 and a tip cap of 2, they are 50, 14, and 2. Raise the base fee to 49 and they become 50, 50, and 1. Only a legacy gasPrice of 50 brings the effective price back to 50, and the validator then receives 38 rather than 2.
This is a research framework. The inclusion rule, the effective price, the value GASPRICE returns, the normalization of legacy transactions, and the base-fee denominator of 8 come from the reference implementation published in EIP-1559. The 21000 gas figure for a simple transfer, and the unbound example 21000 times (10 + 2) = 252000 gwei, come from the ethereum.org gas page cited above. The figures 50, 12, 2, 49, 7, 294000, and 1050000 are a teaching conversion. They were not measured on a live block, and they are not investment advice.