Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: rv79 on July 17, 2021, 09:15:05 AM



Title: Claiming BCH fork from Bitcoin Core
Post by: rv79 on July 17, 2021, 09:15:05 AM
I'm trying to claim BCH from Bitcoin Core, where I used to have BTC (which I have successfully moved into a hardware wallet). I checked the public keys and they definitely hold BCH, the problem I have is how to move them.
I have followed this article: https://medium.com/@itsjameswhite/how-to-claim-bitcoin-cash-from-bitcoin-core-to-an-spv-wallet-d0316d6b6216 - but unfortunately the information isn't correct. I got stuck at Panel 5 - where I was meant to paste my private keys into the keystore input field on Electron Cash and click Next. However, it didn't work. The Next button never highlighted. I then realised that the article incorrectly says copy your private keys and paste them, whereas what I needed was the master private key (which is completely different).
It literally says: To create a watching-only wallet, please enter your master public key (xpub/ypub/zpub). To create a spending wallet, please enter a master private key (xprv/yprv/zprv).
I have tried to get this master private key from Bitcoin Core by the command dumpwallet, but I have no idea where to find the master private key. It was meant to create some kind of text file, but where? I can't find it anywhere, I went to Bitcoin directory and nothing's there.
Is there an easier way to claim BCH? I wouldn't like to do it by downloading a full node wallet like Bitcoin ABC as it would take too long.
Any other ways?
Thank you.


Title: Re: Claiming BCH fork from Bitcoin Core
Post by: ranochigo on July 17, 2021, 10:16:33 AM
How are you using dumpwallet? You need to specify an absolute path.

For example: dumpwallet E:/Bitcoin/dumpedwallet.txt

This creates a file in E:/Bitcoin with a text file dumpedwallet.txt which you can open with any text editor. The master private key should be there. I'm assuming that your BTC wallet was created after the HD wallet integration, ie. there is a HD symbol at the bottom right corner of your GUI.


Title: Re: Claiming BCH fork from Bitcoin Core
Post by: hosseinimr93 on July 17, 2021, 02:49:48 PM
You don't need to use the master private key.
Just export the private key of the address holding bitcoin cash from bitcoin core and import it into electrum.

Go to console and use the following command for exporting the private key of any address you want from bitcoin core.

Code:
dumpprivkey <The address holding bitcoin cash>

For importing the private key(s) into electroncash, select "Import Bitcoin Cash addresses or private key", enter your private key(s) and click on "Next".


Title: Re: Claiming BCH fork from Bitcoin Core
Post by: rv79 on July 18, 2021, 07:53:12 AM
You don't need to use the master private key.
Just export the private key of the address holding bitcoin cash from bitcoin core and import it into electrum.

Go to console and use the following command for exporting the private key of any address you want from bitcoin core.

Code:
dumpprivkey <The address holding bitcoin cash>

For importing the private key(s) into electroncash, select "Import Bitcoin Cash addresses or private key", enter your private key(s) and click on "Next".

Thank you, I was able to do this successfully. Massive thanks!