Honest PolygonLessonsGlossaryPricingApp

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.

Gashow much work:transfer 21,000swap ~150,000×Gas pricebase (burned)+ validator tiprises with a queue=Feein ETH, independentof the transfer amountA transfer of $10 and of $10 million costs the same: you pay for computation, not for the amount.When the network is busy, the base price rises with every full block until the queue clears.

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.

Main-network gas is shared by everyone: each pays many times less.txtxtxtxtxtxtxtxL2 (rollup)8 transfers →1 batchMain network (L1): 1 record for everyoneEveryone pays≈ 1/8 of L1 gas+ L2 fee
  1. Eight transfers on the main network — eight records and eight gas payments.
  2. The same transfers are sent to layer two.
  3. Layer two combines them into one batch and writes it to the main network.
  4. 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:

  1. A million times larger in the second case
  2. About the same — you pay for computation, not for the amount
  3. 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.

The whole course is in the app and in the book: Pricing · Book · Test your own idea

Updated November 28, 2026