Set up Ganache & Metamask - the-future-of-benchmarking/proof-of-concept GitHub Wiki
This tutorial assumes you are starting from scratch. If Ganache is already running, please start at "Key import from Ganache"
Start Ganache
Use the Quickstart Ethereum
option (this should suffice for development purposes)
Setup Metamask
Switch to the metamask extension. Change to the network selector by clicking at the right top dropdown of the Metamask window.
To connect with Ganache, the following values are to be entered into the dialog that should open (see image below table).
Attribut | Wert |
---|---|
Network Name | Ganache |
New RPC URL | http://127.0.0.1:7545 |
Chain ID | 1337 |
Click on Save
.
Key import from Ganache
Please switch back to Ganache.
It should display a list of accounts by now.
Select the key
icon as displayed below.
The popup provides the private key to the selected account. Beware that this should be used for development only! Copy the value.
Switch back to Metamask and click on the circle at the top right.
Click on Import Account
.
Paste the private key in the dialog as shown below:
After clicking on Import
Metamask should show a balance > 0 ETH as shown below:
As the last step, the account has to be connected to the webpage.
The following dialog should open:
Congrats on completing the tutorial!
Metamask and Ganache are now synced and after a refresh
of the webpage it is now possible to use the client.