Description Usage Arguments Value See Also Examples
ether.toWei returns the value of the cryptocurrency in Wei.
1 | ether.toWei(amount, type)
|
amount |
Integer - Amount of the cryptocurrency to convert from. |
type |
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
1 | ether.toWei(50, 'ether')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.