June 2018
Beginner to intermediate
170 pages
3h 46m
English
First, let's make sure geth is running. In a terminal window, run the following command:
geth --rpc --verbosity "0" console
The --rpc flag tells geth to connect to a locally running Ethereum node at localhost:8545.
Once you are in the geth console, make sure to unlock your coinbase account. Why must we do this? To perform transactions (a migration is a transaction, too) we need to have an unlocked coinbase account. To unlock your account, run the following command:
web3.personal.unlockAccount(web3.eth.coinbase, "<your password>", 15000)
Replace <your password> with your coinbase password. The 15000 parameter tells geth to keep your account unlocked for 15000 seconds.
Read now
Unlock full access