I am attempting the Truffle "Ethereum pet-shop tutorial":


I am in the stage where I am attempting to implement the smart contract on the local Ganache block chain, where I have to use the Ganache seed phrase to import the applicable Ganache den. However, I have an existing MetaMask den with some tokens and real ETH in it.

My question is: How can I import the Ganache den for local testing?

I have tried disabling and re-enabling the extension, but upon entering my password, it takes me to my existing den with the multiple tokens and ETH in it.

Help will be greatly appreciated.

  • 3
    Okay I seem to have gotten it right, if anyone else struggles with this: just click on the three bars in the top right corner of the MetaMask interface, select settings, and paste the Ganache URL in to the test RPC URL box. This will connect MetaMask to the private Ganache network. Commented Dec 24, 2017 at 15:00

4 Answers 4


You can import a new account from the private key of a Ganache's test address, not the seed phrase.

The private key can be seen by clicking the key icon on the right of an account row in Ganache.

enter image description here

  • 1
    Also working back the other way you can create a new account in MetaMask by importing a private key from Ganache startup.
    – MrYellow
    Commented Jan 27, 2018 at 22:07
  • 1
    where we have to paste private key in meta mask Commented Jun 14, 2019 at 17:38

Ok so the solution I found for this:

You do not need to use the Ganache seed phrase and therefore neither the specific Ganache MetaMask den.

You can use your existing den with your own unique seed phrase. Even if you have other accounts with real value tokens in them, these existing accounts and the tokens in them will not be influenced.

To connect to the local Ganache block chain:

Click on the three horizontal bars in the top-right corner of the MetaMask interface in your existing den, select settings, and then paste the URL in the Ganache interface into the test RPC URL box.

This is all you need to do to connect to the local Ganache block chain and your existing accounts will remain uninfluenced. Note that if you follow the above steps, MetaMask will indicate that you are connected to a testnet where it usually says Main Ethereum Network.

Hope this helps somebody.

  • 4
    This works, but the account got 0 eth....? It should be 100, no?
    – tomsoft
    Commented Jan 26, 2018 at 8:22
  • unless you use the same mnemonic, you're only connecting to the local network, but not using any of the accounts that ganache generated Commented Aug 9, 2018 at 17:05

To see the ether 0 to 100 you have to connect the specific address from Ganache. Open the ganache you will see 10 address. To use any address press the key symbol and copy the address. After that go to the metamask and press the 3 dots. You will find an option import. Then paste the address which you copied from ganache. You will able to see the ether.

  • Thank you, this solution worked for me.
    – Raj
    Commented Aug 9, 2021 at 6:48

To import all dummy Ganache accounts at once in MetaMask:

  1. Click on this Circle List item

  2. Click on Lockenter image description here

  3. Click on "Forgot Password"enter image description here

  4. Copy the 12 word mnemonic from Ganache and paste in the first box

  5. Give a password and done.

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.