the World s Most Popular Bitcoin Website and Wallet

Where is located?

Bitcoin Exchanges / September 22, 2022

If you’re reading this, you may be one of the few unlucky souls who inadvertently converted their legacy-style wallet to the new HD-style wallet. If you just so happened to have > 1000 addresses in your legacy-style wallet, the conversion process will render your entire wallet unusable due to some limits set in the internal API.

If it seems support is unwilling to help you recover the keys to your legacy wallet, you’re not alone. I just helped someone recover quite a few coins that would have been seemingly lost otherwise. Read on to reclaim your coins…

Once logged into the bricked wallet, the following steps can be taken from inside the javascript debug console in any browser (I used Firefox) to extract private keys for a given address to import elsewhere.

Step 1: dump all active addresses in the wallet:


Run the command above in the debug console to return an object of all the addresses, including legacy, in the wallet, with the following structure:

Find the appropriate address and locate the value inside the _priv field (the private key). This is likely a base58 encoded representation of the address’s private key.

Step 2: confirm what format the private key is in using the following command:


This will output a value into the console, typically base58.

Step 3: run the following command to convert the private key into wallet import format:

var key = Blockchain.Helpers.privateKeyStringToKey("_THE_PRIVATE_KEY_FROM_STEP_1", "base58"); var uWIF = key.toWIF; console.log(uWIF);

Note if you got a different value than base58 for step 2, replace base58 with the appropriate value. This will output the private key for the address in wallet import format.

You can then import this into Bitcoin Core using:

bitcoin-cli importprivkey {the output of step 3} “from” false
Note: if you have more than one private key to import, you will save a lot of time by attaching false onto the end of each importprivkey call, only setting the blockchain rescan flag to true after the last key has been imported.