Wei
1 min read
Pronunciation
[way]
Analogy
Definition
Key Points Intro
Wei provides the atomic unit of measurement for all value and computation on Ethereum.
Key Points
Equals one quintillionth (10^-18) of one ether.
The fundamental unit used internally by the Ethereum Virtual Machine.
All gas prices and transaction values are ultimately denominated in wei.
Named after Wei Dai, influential cryptographer and creator of b-money.
Example
When setting a gas price for an Ethereum transaction, you might specify 30 gwei (30 billion wei), and your total transaction might cost 0.005 ETH, which the network processes as 5,000,000,000,000,000 wei.
Technical Deep Dive
Ethereum uses wei as its base unit for all protocol-level calculations to avoid floating-point precision issues, similar to how Bitcoin uses satoshis. At the implementation level, transaction values, gas prices, and account balances are stored and manipulated exclusively as integers representing wei amounts. The extremely small denomination was chosen to provide granularity for both value transfer and computational pricing, allowing precise economic mechanisms even if ether's value increases substantially. Ethereum defines a series of named denominations between wei and ether: kilowei (10^3), megawei (10^6), gigawei/gwei (10^9), microether (10^12), milliether (10^15), and ether (10^18), though wei, gwei, and ether are the most commonly used in practice.
Caveat
Wei - Related Articles
No related articles for this term.