I don't want to load the web3 library, I do however want to convert Either to Wei, does anyone have a JavaScript function to share.
I don't mind loading a smaller library
javascript
I don't want to load the web3 library, I do however want to convert Either to Wei, does anyone have a JavaScript function to share.
I don't mind loading a smaller library
Best Answer
In javascript it would be
wei = eth_amount*10e17
. Not*10e18
.e
counts as the10
and*10e18
would multiply your eth by one order of magnitude too many!