module EtherUnits
Public Instance Methods
ether()
click to toggle source
# File lib/units-money.rb, line 90 def ether() self * e18; end
Also aliased as: eth
gwei()
click to toggle source
# File lib/units-money.rb, line 87 def gwei() self * e9; end
Also aliased as: shannon
kwei()
click to toggle source
# File lib/units-money.rb, line 85 def kwei() self * e3; end
Also aliased as: babbage
microether()
click to toggle source
# File lib/units-money.rb, line 88 def microether() self * e12; end
milliether()
click to toggle source
# File lib/units-money.rb, line 89 def milliether() self * e15; end
mwei()
click to toggle source
# File lib/units-money.rb, line 86 def mwei() self * e6; end
Also aliased as: lovelace
wei()
click to toggle source
Ethereum money units
wei 1 wei | 1 kwei (babbage) 1e3 wei | 1_000 mwei (lovelace) 1e6 wei | 1_000_000 gwei (shannon) 1e9 wei | 1_000_000_000 microether (szabo) 1e12 wei | 1_000_000_000_000 milliether (finney) 1e15 wei | 1_000_000_000_000_000 ether 1e18 wei | 1_000_000_000_000_000_000 Names in Honor: wei => Wei Dai lovelace => Ada Lovelace (1815-1852) babbage => Charles Babbage (1791-1871) shannon => Claude Shannon (1916-2001) szabo => Nick Szabo finney => Hal Finney (1956-2014)
# File lib/units-money.rb, line 84 def wei() self; end