Bitcoin Cash

Bitcoin Cash

Bitcoin Cash can be accessed with the following coin types:

EnvironmentCoin TypeFaucet
Bitcoin Cash Productionbch
Bitcoin Cash Testnettbchhttps://coinfaucet.eu/en/bch-testnet/

New wallets created within Bitcoin Cash are not able to receive normal Bitcoin.

Fork notes

Bitcoin Cash (BCH) forked from the Bitcoin mainnet on August 1st, 2017. Bitcoin addresses that had balances on this date kept the same balance within Bitcoin Cash. After this date, blocks and transactions on the BCH fork no longer overlap with Bitcoin.

The Bitcoin Cash fork is

replay-safe

both ways, meaning that transactions made after August 1st, 2017 on one chain do not occur on the other.

Migrated Wallets

All BitGo customers using our Bitcoin wallets on August 1st, 2017 had their wallets and keys automatically migrated to the V2 BCH coin type.

Users can find migrated wallets by using the List Wallets API. On the wallet object, there is a migratedFrom property that corresponds to the Bitcoin Wallet ID.

To protect against confusion (users sending BCH to BTC addresses or vice versa), migrated wallets may not create new addresses by default. Users should create a new wallet with new keys to ensure all new BCH addresses do not collide with BTC addresses.

Generating wallets

1 2 3 4 5 6 7 8 9 10 11 bitgo .coin('bch') .wallets() .generateWallet({ label: 'My Test Wallet', passphrase: 'secretpassphrase1a5df8380e0e30', }) .then(function (wallet) { // print the new wallet console.dir(wallet); });
1 2 3 4 5 6 7 8 LABEL="My Test Wallet" PASSPHRASE="secretpassphrase1a5df8380e0e30" curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -d "{ \"label\": \"$LABEL\", \"passphrase\": \"$PASSPHRASE\" }" \ http://$BITGO_EXPRESS_HOST:3080/api/v2/bch/wallet/generate

For Bitcoin, BitGo uses a 2-of-3 multisig P2SH scheme, with the keys in the order of User, Backup and BitGo respectively.

Wallet creation can be done in a single line with the help of our SDK.

Creating addresses

1 2 3 4 5 6 7 8 9 10 11 bitgo .coin('bch') .wallets() .getWallet({ id: '585c51a5df8380e0e3082e46' }) .then(function (wallet) { return wallet.createAddress(); }) .then(function (newAddress) { // print new address details console.dir(newAddress); });
1 2 3 4 5 WALLET=585c51a5df8380e0e3082e46 curl -X POST \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://app.bitgo-test.com/api/v2/bch/wallet/$WALLET/address

Note: You can view address types and their Chain Codes. Bitcoin Cash defaults to chain code 0 and doesn't support SegWit address types.