Wei
Wei is the smallest unit of Ether, the native cryptocurrency of the Ethereum blockchain. 1 Ether equals 1 quintillion Wei.
What Is a Wei?
A Wei is the smallest unit of Ether (ETH), the native cryptocurrency of the Ethereum blockchain. It is a subunit used to represent fractions of Ether, where 1 Ether equals 1 quintillion Wei, or 1 ETH = 1,000,000,000,000,000,000 Wei.
Wei is the fundamental unit of account on the Ethereum network. It is often used to measure very small transactions, as typical Ethereum transactions can involve extremely precise amounts of Ether, especially for gas fees. Due to Ethereum's decentralized nature, the ability to work with such small units ensures that transactions are highly granular and accessible to users around the world.
In the Ethereum ecosystem, all transactions and smart contracts are processed in Wei, with gas fees typically calculated in smaller units like Gwei (1 Gwei = 1,000,000,000 Wei). When users perform transactions, they may use Wei directly or refer to higher-level units like Ether or Gwei for simplicity. Smart contracts also deal with Wei to avoid any loss of precision that could occur when working with larger denominations like Ether.
Wei matters because it enables precise calculations and efficient handling of small amounts of Ether. This is particularly relevant in the context of gas fees, which are crucial for Ethereum's network operations. Since gas costs are often small and vary based on network congestion, the ability to calculate fees in Wei ensures that even fractional amounts of Ether can be transacted, making Ethereum transactions both scalable and cost-effective. Additionally, understanding Wei is essential for developers and users who wish to avoid issues with transaction precision or miscalculations in decentralized applications.
There are no alternative types of Wei per se, but it is essential to know that Wei is a base unit for higher denominations like Gwei and Ether. By being the smallest unit, Wei serves as the foundation for all Ethereum transactions.
Ethereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).
Read full definitionCryptocurrency is a digital or virtual currency secured by cryptography, operating on decentralized blockchain networks to enable secure, peer-to-peer transactions.
Read full definitionGas Price is the fee per unit of gas, often in gwei, that users pay to process transactions on Ethereum and similar blockchains.
Read full definitionBase is an Ethereum Layer 2 network developed by Coinbase. It uses optimistic rollups for scalable, low-cost transactions.
Read full definitionFoundation refers to the Passport, a Bitcoin-only hardware wallet by Foundation Devices that securely stores private keys offline for self-custody.
Read full definitionReal-World Examples
Example 1: When setting up a Ledger hardware wallet to store Ethereum, the smallest transactions are measured in Wei. For instance, if the transaction fee for a simple transfer is 21000 gas units, and the gas price is 10 Gwei, the total cost would be 21000 * 10 * 1000000000 = 210000000000000 Wei.
Example 2: Developers often deal with Wei when writing smart contracts to ensure accurate and precise calculations. For example, when creating a token contract, each token's value might be specified in Wei to prevent rounding errors when working with smaller amounts of Ether.
Example 3: If a user wants to send 0.01 Ether to another account, they might convert this amount to Wei for the transaction. Since 1 Ether equals 1,000,000,000,000,000,000 Wei, 0.01 Ether would be 10,000,000,000,000,000 Wei.
Example 4: Gas fees on Ethereum can fluctuate in Wei, depending on network congestion. If the gas price rises from 10 Gwei to 50 Gwei, a transaction that cost 210000000000000 Wei before would now cost 1050000000000000 Wei for the same computation.
Ledger is a brand of hardware wallets that securely store cryptocurrency private keys offline, such as the Ledger Nano series.
Read full definitionEthereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).
Read full definitionA transaction fee is a cost paid to process transactions on a blockchain network. It compensates miners or validators for confirming and adding transactions to the blockchain.
Read full definitionGas Price is the fee per unit of gas, often in gwei, that users pay to process transactions on Ethereum and similar blockchains.
Read full definitionA token is a digital asset on a blockchain that represents value, ownership, utility, or access rights. Examples include ERC-20 tokens on Ethereum.
Read full definitionReady to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.