Setting up Ganache with Metamask
Having trouble getting test ETH? Might be time to try Ganache.
Last updated
Having trouble getting test ETH? Might be time to try Ganache.
Last updated
Ganache is a development tool in the Truffle Suite and is used for setting up a personal Ethereum Blockchain to deploy contracts, develop your applications, and run tests. MetaMask is a software cryptocurrency wallet used to interact with the Ethereum blockchain. Getting test ETH is a nightmare these days so we recommend using local network for development. In a local network, there is no ETH limitation, and you don't have to wait for transactions to complete. In this tutorial we will install and setup Ganache and import your Ganache account to Metamask. When you are done you can:
Sign Ganache transactions from Metamask
Check your (Ganache) assets in Metamask
Check every (Ganache) transaction which affected your wallet in Metamask
Download Ganache from:
Install Ganache
Run Ganache
Select QUICKSTART ETHEREUM as workspace
Goto setting
Select SERVER tab
Select 127.0.0.1 as HOSTNAME
Switch off AUTOMINE toggle
Set MINING BLOCK TIME to 10
Click on SAVE AND RESTART
Setting up ganache network in Metamask
Open Metamask
Select Settings
Select Networks
Click on Add Network
Set the Network Name e.g ganache
The RPC URL value comes from ganache i.
Set the Chain ID
Type e.g 1 and a hint appears about the exact Chain ID so use that.
Type the suggested chain id which is 1337.
Set the Currency symbol
Click on Save
Open My accounts
Import your Ganache account
Click on Show keys of the account to import in Ganache
Copy the PRIVATE KEY
Open Metamask
Open My Accounts
Select Import Account
Enter your private key and import