[Ethereum] How to import a account from testnet

accountsethertestnets

I recently traded BTC for 1 Ether using shapeshift.io

The transaction was successful, but there is no record of Ether in my local account.

Here is the tx reference.

I fear that I have made a mistake, transferring into a account on Testnet, instead of the main network – but can't find any literature on whether my hunch is true.

More info:

My Ethereum Wallet is the latest build (0.5.2), and all nodes / blocks are synced.

I'm not looking to build any apps for the moment, I'm merely interested in investing in the currency by holding Ether. If what I did was incorrect, what should I be doing instead?

If it makes any difference, the generated avatar displayed on the account is exactly the same as the one in my local account.

tl;dr: Purchased Ether using a account generated on testnet, but it's not reflecting locally. How to import an account from testnet?

Best Answer

  1. Go to Ethereum data dir (on Linux ~/.ethereum, on Windows somewhere in AppData).
  2. Find folder testnet/keystore. It contains password encrypted private keys.
  3. Find the private key file for you account with the name

    UTC--some-timestamp--7b7E17Ed506fc0af0d472e093a56AF988a07611C

  4. Copy the file to your mainnet keystore folder (next to testnet folder).

  5. The Ethereum Wallet should be updated automatically and show the new account.

Good luck.

Related Topic