Speciaal en op algemene aanvraag voor alle newbies: dit is wat je moet doen voor splitsing BTC/BCC:
PS: vergeet de laatste regel niet te lezen:
BCCSpliter
A command line utility for splitting your BTC from your BCC.
Motivation
The 1st august 2017, a minority of the community is creating an altcoin named BCC (Bitcoin Cash) whose initial distribution is holding of BTC at the time of the hard fork.
This tool allows you to connect to your Bitcoin Core wallet, select coins you want to split, create a transaction only valid on BCC and broadcast it.
BCC includes an opt-in replay protection: a new flag for signature SIGHASH_FORKID has been created in BCC. The signature scheme for this SIGHASH, is similar to segwit signature scheme.
This mean that a valid SIGHASH_FORKID signature on BCC will not be valid on BTC chain. Making it easy to split your UTXO.
Requirements
As a user, you will need:
NET Core SDK 1.0.4 (see below)
At least Bitcoin Core 0.13.1 fully sync, rpc enabled.
You can easily install the SDK on ubuntu systems after having installed the runtime by running
sudo apt-get install dotnet-dev-1.0.4
You can known more about install on your system on this link. Using Bitcoin Core with later version should work as well.
As a developer, you need additionally one of those:
Visual studio 2017 (Windows only)
Visual studio code with C# Extension (Cross plateform)
How to build?
Given the requirements are installed in your system and BitcoinD is running:
Setup your repository:
git clone
https://github.com/NicolasDorier/BCCSplitercd BCCSpliter
git submodule init
git submodule update
dotnet restore
How to run?
For running, from inside the repository folder:
cd BCCSpliter
dotnet run
Be sure you are in the project folder inside the repository (BCCSpliter/BCCSpliter) when running dotnet run.
If you want to run on other network (regtest or testnet):
dotnet run -testnet
dotnet run -regtest
How to use?
The process is the following:
Select the UTXOs your want to spend.
Use the command dump <BitcoinAddress on BCC> (This will create and broadcast a valid on BCC only, and lock the UTXOs you used in Bitcoin Core wallet)
Once the dump transaction is confirmed, use confirm <dumpTxId> to unlock your BTC in your BTC wallet.
Typical flow:
list
# Find interesting UTXO you want to dump
select 72c5ddde9377d5332cd4a29412326272c2678c4020520508328bba7a351d7263-0
select 489dc8f0925a99fe772f0d5cd5f05cda77bf29449ec3ee266575add6312d6e04-2
# Check the status what the next dump will be
list
# Then dump
dump mpxsXnCn1ScUVZmgEDgkjMZMV3NAAVzSdN
# Wait that the dump transaction get confirmed on your favorite exchange, then unlock your coin in your Bitcoin Core wallet
confirm 38348679e28c9df785dd0d70b5db5b45986ed107ebbe1248bb7bfbdca74cc063
The selected UTXO are now safe to be spent on BTC chain.
How to configure?
If you are not using standard install for bitcoind, you will have to change the configuration file: In Windows it is located on
C:\Users\<user>\AppData\Roaming\BCCSpliter\<network>\spliter.config
On linux or mac:
~/.bccspliter/<network>/spliter.config
The configuration file allows to configure the connection to your Bitcoin RPC, and to choose a specific Bitcoin Cash node for broadcasting your transaciton. By default, the configuration file is using cookie authentication in default bitcoin core path, and connect to a random Bitcoin Cash node.
My transaction does not pass
Please, wait for the split to happen before using this tool on Mainnet.
If that is the case, the problem is that your Bitcoin Core has no idea which coin can be splitted, and it is possible you splitted an UTXO which does not exist on the BCC chain.
If that is the case, then your transaction will be rejected, and your machine banned by BCC nodes.
There is sadly no block explorer for BCC to check which UTXO can be splitted at this time, so this is a trial and error process.
License
This program is under MIT License, use at your own risk.
If you are unsure about what this program is doing, then do not use it. This program is meant for people understanding the situation with BCC and BTC.