What Gas Fees Pay For on a Network
Gas is a unit of work: a new storage slot costs 22,100 gas, a plain ETH transfer 21,000. Gas fees pay for the computation, data and storage a transaction uses, and this guide breaks the bill into its parts. It covers the flat 21,000 base cost, the per-byte price of transaction data, why writing to storage is the expensive step, how unused gas comes back to the sender and why a failed transaction still pays. A worked example at an assumed 10 gwei compares a plain transfer with a contract call that writes a new storage slot, in gas, gwei and ETH, so the reader can see which line items drive a fee and read a wallet's gas estimate with that in mind.
Read the full guide