X Layer Unit Converter
Instantly convert X Layer amounts between OKB and its smallest unit, the Wei. On X Layer, 1 OKB = 10^18 Wei, so a single rounding mistake can be costly — this tool keeps every denomination exact.
* X Layer uses the same unit system as Ethereum. 1 OKB = 1018 Wei. Gwei is commonly used for gas price calculations.
Understanding X Layer units
The native asset of X Layer is OKB, divisible into 18 decimal places. The smallest indivisible unit is the Wei. Smart contracts, RPC responses, and on-chain transactions almost always use Wei, while wallets and exchanges display OKB — converting between them correctly is essential for developers and traders alike.
X Layer denomination table
| Unit | Value in Wei |
|---|---|
| OKB | 1,000,000,000,000,000,000 |
| Finney | 1,000,000,000,000,000 |
| Szabo | 1,000,000,000,000 |
| Gwei (Shannon) | 1,000,000,000 |
| Wei | 1 |
Why convert X Layer units?
Whether you are debugging a transaction, setting gas values, reading uint256 contract data, or simply checking a balance, working in the right X Layer denomination prevents expensive mistakes. This converter handles OKB, Wei, and all intermediate units with full precision.