powered by
ether.toWei returns the value of the cryptocurrency in Wei.
ether.toWei
ether.toWei(amount, type)
Integer - Amount of the cryptocurrency to convert from.
String - Unit of the cryptocurrency to convert from: wei, kwei, mwei, gwei, szabo, finney, ether, kether, mether, gether or tether.
Integer - Value in Wei.
Other ether functions: ether.toEther, ether.toFinney, ether.toGether, ether.toGwei, ether.toKether, ether.toKwei, ether.toMether, ether.toMwei, ether.toSzabo, ether.toTether, gethr
ether.toEther
ether.toFinney
ether.toGether
ether.toGwei
ether.toKether
ether.toKwei
ether.toMether
ether.toMwei
ether.toSzabo
ether.toTether
gethr
# NOT RUN { ether.toWei(50, 'ether') # }
Run the code above in your browser using DataLab