I follow the instruction video "Code Your Own Cryptocurrency on Ethereum (Full)" from Dapp University on youtube. What is different when i use web3.eth.account.

Here is from tutorial

enter image description here

Here was i do it my self (it's doesn't give me some address):

enter image description here

  • using ganache-cli? Commented Apr 19, 2019 at 7:35

1 Answer 1


If the video is quite old it is possible that the video was made when web3 was still around version 0.20.0 for which the function effectively retrieved the accounts list.

Since then web3 is on version 1.0.0-beta.x for which you'll need to call web3.eth.getAccounts() method to retrieve the list of accounts.

see the documentation


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.