# How to Export and Import Private Keys from Local Odarhom Wallet QT

<div align="center"><img src="/files/-McfqgHIK1p-Mz9lONwz" alt="Debug window"></div>

As a security measure it is always advised to first move your **BitCore** to a new address before attempting to claim any **BTX** from another wallet, this way you can be sure that your private keys used for the claim cannot be used to steal your actual **BTX**. With the recent addition of official support for **SegWit** addresses, it might be a good time to update your **BitCore** wallet, generate a new **SegWit** wallet address and move your coins to it and then start claiming any BTX from another wallet with the old private keys.

&#x20;**How to export the private keys:**\
– Start your **Odarhom BitCore Wallet QT** or other QT-wallet\
– Click on “`Help`” in the menu bar of the wallet\
– Click on “`Debug window`” from the menu\
– Select the “`Console`” tab to be able to type commands\
– Unlock your wallet (if it is locked) with: `walletpassphrase “your wallet password” 120`\
– Export the private key with: `dumpprivkey “your Bitcoin address”`\
– Copy and keep safe the private key you will get for the respective wallet address you have typed\
– Lock the wallet again with: walletlock

&#x20;**How to import the private keys:**\
– Start your **Odarhom BitCore Wallet QT** or other QT-wallet\
– Click on “`Help`” in the menu bar of the wallet\
– Click on “`Debug window`” from the menu\
– Select the “Console” tab to be able to type commands\
– Unlock your (if it is locked) wallet with: `walletpassphrase “your wallet password”`` `**`120`**\
– Import the private key with: `importprivkey “your Private key”`\
– You can check to see that a new receiving address has been added in the wallet\
– Lock the wallet again with: walletlock

Make sure you import your private key(s) as soon as you start the local wallet to claim all coins correctly, otherwise you might have to do a blockchain resynchronization. An alternative solution would be to simply copy the **Odarhom BitCore** `wallet.dat` file, but then you might have to zapwallettxes, and it may take longer to claim if you have multiple wallets. Again, make sure you keep your private keys safe and don't share them or use them to try to claim coins unless you have already moved all the coins to a new address before you start the claiming process, otherwise there is a risk of losing your BTXs. Even in the case of importing coins from legitimate wallets, it is always a good idea to be on the safe side and never share or use a private key for a wallet that still has coins in it, just to avoid possible security risks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bitcore-btx.gitbook.io/bitcore-btx/privatekey-1/privatekey/how-to-export-and-import-private-keys-from-local-odarhom-wallet-qt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
