Metamask – How to Import Accounts to Metamask or Export Them?

accountsgo-ethereummetamaskprivate-key

I need my accounts in Metamask to match my local machine so I can deploy from the machine (using truffle), and test in a browser. How can I either:

  1. Upload my local geth accounts to Metamask
  2. Bring my Metamask keys into geth

Truffle seems to deploy from your 'eth.coinbase' account whatever that may be, so most importantly I need that one to match Metamask.

Best Answer

You can now import single/"loose"(as we call) keys into MetaMask if you click the menu in the top right corner. It will drop down with the option "Import account", you can click that and it will take you to a view where it will ask you to import your private key or json file.

Related Topic