Setting MetaMask Ganache accounts

You may have noticed that MetaMask only has one default account after we connect with the Ganache server. This account has zero ether balance, which is created by MetaMask by default. To import the Ganache wallet address to MetaMask, we can use a private key or JSON file.

In Ganache desktop, perform the following steps:

  1. Click the key icon under the ACCOUNTS tab, the pop-up screen will display the private key information for the preferred address selected as shown here:
  1. Copy the private key information.
  2. Then click on the Account button in the MetaMask upper-right corner.
  3. Click Import Account. The new account ...

Get Learn Ethereum now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.