Using Web3 version 1.0 and getting the following error:
web3.toWei
is not a function
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityAt Web3 version 1.0, utility functions like toWei
and many others have been moved to the web3.utils
.
To check all utility functions refer to: