Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 576 Bytes

units.md

File metadata and controls

19 lines (13 loc) · 576 Bytes

Ether Units

Ether units are wei, gwei, ether. Ether numbers without a postfix are assumed to be Wei. Suffix of wei, gwei, ether can be used to specify a subdenomination of ether.

  • 1 wei = 1
  • 1 gwei = 1e9
  • 1 ether = 1e18

Time Units

Time units include seconds, minutes, hours, days and weeks. seconds are the base unit, siffix can be applied to specify unit of time.

  • 1 == 1 seconds
  • 1 minutes == 60 seconds
  • 1 hours == 60 minutes
  • 1 days == 24 hours
  • 1 weeks == 7 days

Ether and Time unit suffixes can not be applied to variables.