Lessons › Blockchain and coins
Gas, layer one and layer two
The network's work is not free. In Ethereum it is measured in units of gas: a simple transfer is 21,000 gas, a swap on an exchange several times more. The fee is gas multiplied by the gas price. The price consists of a base part, which is burned, and a tip to the validator.
When everyone wants to get into a block, the gas price rises — there have been days when a simple swap cost tens of dollars. Hence the idea of layer two. Layer one is the network itself with its own consensus. Layer two gathers many transfers into one batch and writes the whole batch to layer one at once. The fee is shared by everyone.
- Eight transfers on the main network — eight records and eight gas payments.
- The same transfers are sent to layer two.
- Layer two combines them into one batch and writes it to the main network.
- Each pays roughly one eighth of the gas plus the layer-two fee. In real life a batch holds thousands of transfers.
Such second layers are called rollups. Optimistic ones treat a batch as valid until someone proves otherwise — so withdrawing money to the main network can take about a week. ZK rollups attach a mathematical proof to the batch.
The price of cheapness is new risks: layer two has an operator that assembles the batches, and a bridge for moving money between layers. More on this in module 5.
Question. You transfer $10 and $10,000,000 the same way on the same network. The gas fee is:
- A million times larger in the second case
- About the same — you pay for computation, not for the amount
- Free in the second case
Show the answer
b. About the same — you pay for computation, not for the amount — Gas is payment for the network's work. Transferring any amount is the same work. That is why small transfers on a busy main network are uneconomical, while large ones cost almost nothing in percentage terms.
Facts checked on November 9, 2026.
- ethereum.org: gas and fees: https://ethereum.org/en/developers/docs/gas/
- ethereum.org: layer 2: https://ethereum.org/en/layer-2/
The whole course is in the app and in the book: Pricing · Book · Test your own idea
Updated November 28, 2026