Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transfer BTC from a wallet.db back into my (private) wallet ? #53

Open
jo2h2 opened this issue Feb 26, 2021 · 2 comments
Open

How to transfer BTC from a wallet.db back into my (private) wallet ? #53

jo2h2 opened this issue Feb 26, 2021 · 2 comments

Comments

@jo2h2
Copy link

jo2h2 commented Feb 26, 2021

Hi,

during my first attempt with chainpoint gateway I loaded my ~/.chainpoint/gateway/.lnd/data/chain/bitcoin/mainnet$ wallet.db with some 0.0... BTC - but I screwed up this machine and I started (successfully) with a 2nd machine.

But now I have this wallet.db in a non working environment containing "some" BTC ...

What can I do to transfer these BTC from this wallet.db back into my main wallet ?

Thanks for any hint :-).

Best wishes,
Jo ...

@jacohend
Copy link
Contributor

jacohend commented Feb 26, 2021

I'd probably try this:

You can move the old wallet.db to the new machine. We store the passwords in docker secrets. You can recreate the requisite docker secrets on the new machine that you should have saved from the old machine. If you've already initialized the new machine's wallet, you can erase the existing docker secrets from that machine using docker secret rm HOT_WALLET_PASS, etc, then put in your old ones this way:

  `printf <your old wallet pass> | docker secret create HOT_WALLET_PASS -`,
  `printf '<your old cipher seed>' | docker secret create HOT_WALLET_SEED -`,
  `printf <your old btc address> | docker secret create HOT_WALLET_ADDRESS -`

The wallet should unlock using the new gateway's unlocker when you run the new system. Then the new system will be using your old wallet.

If this doesn't work, I'd say you should take the init script from gateway and modify it to accept your existing password and seed instead of generating a new one in this method: https://github.com/chainpoint/chainpoint-gateway/blob/master/init/index.js#L115

Please be advised that we can't provide much further support than this about the basics of bitcoin wallets. Additionally, when doing anything involving real btc, I'd advise taking backup snapshots of the hard disks in case you mess up, so that you can just revert to a backup disk image.

@jo2h2
Copy link
Author

jo2h2 commented Feb 26, 2021

Thanks for your quick reply Jacob !

Will give this a try :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants