What is Gwei?
Gwei (gigawei) is a denomination of Ether equal to 10^9 wei or 0.000000001 ETH — the standard unit for expressing Ethereum gas prices, making fee calculations human-readable.
WHY IT MATTERS
Gas prices on Ethereum are typically in the range of 1-500 gwei per unit of gas. Expressing this in ETH (0.000000001 - 0.0000005) or wei (1,000,000,000 - 500,000,000,000) would be unwieldy. Gwei is the Goldilocks unit.
When someone says 'gas is 30 gwei,' they mean each unit of gas costs 30 gwei. A simple ETH transfer uses 21,000 gas, so at 30 gwei it costs 21,000 × 30 = 630,000 gwei = 0.00063 ETH.
Understanding gwei is essential for managing transaction costs, setting gas prices, and building fee estimation into agent systems.