Version 27.0.0 | Fork Height: 53,200 | P2P Port: 8339 | RPC Port: 8342
Bitcoin Cash II (BCH2) is a SHA-256 cryptocurrency that forks from Bitcoin II (BC2) at block 53,200, activating all Bitcoin Cash consensus rules including 32MB blocks, ASERT difficulty adjustment, and CashAddr addressing.
- Features
- System Requirements
- Download Pre-built Binaries
- Building from Source
- Running BCH2
- Configuration
- Mining
- RPC Commands
- Network Information
- License
| Feature | Value |
|---|---|
| Block Size | 32 MB (post-fork) |
| Block Time | 10 minutes |
| Difficulty Adjustment | ASERT (aserti3-2d) |
| Address Format | CashAddr (bitcoincashii:q...) |
| SegWit | Disabled (post-fork) |
| Replace-by-Fee | Disabled |
| Replay Protection | SIGHASH_FORKID (0x41) |
| Coin Symbol | BCH2 |
- CPU: 2 cores
- RAM: 4 GB
- Disk: 20 GB SSD
- Network: 10 Mbps
- CPU: 4+ cores
- RAM: 8+ GB
- Disk: 50+ GB SSD
- Network: 100+ Mbps
Download the latest release from: https://github.com/BitcoincashII/bitcoincashII-core/releases
sudo apt update
sudo apt upgrade -ysudo apt install -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
bsdmainutils \
python3 \
libevent-dev \
libboost-dev \
libsqlite3-dev \
libminiupnpc-dev \
libnatpmp-dev \
libzmq3-dev \
systemtap-sdt-dev \
libqrencode-dev \
libdb-dev \
libdb++-dev \
gitcd ~
git clone https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core./autogen.shExpected output:
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
...
configure.ac:30: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
mkdir -p build
cd buildFor daemon only (no GUI):
../configure --without-gui --disable-tests --disable-benchFor daemon + Qt GUI:
# Install Qt dependencies first
sudo apt install -y qtbase5-dev qttools5-dev qttools5-dev-tools
# Then configure
../configureFor daemon + all features:
../configure --with-gui=qt5 --enable-walletExpected output (end of configure):
Options used to compile and link:
external signer = yes
multiprocess = no
with wallet = yes
with sqlite = yes
with bdb = yes
with gui / qt = no
with zmq = yes
with usdt = yes
with libs = yes
werror = no
target os = linux
build os = linux-gnu
CC = gcc
CFLAGS = -g -O2
CXX = g++ -std=c++20
...
make -j$(nproc)This uses all available CPU cores. On a 4-core machine, expect 10-20 minutes.
Expected output (end of make):
CXXLD bitcoincashII-cli
CXXLD bitcoincashII-tx
CXXLD bitcoincashII-util
CXXLD bitcoincashII-wallet
CXXLD bitcoincashIId
Tip: For production deployment, strip debug symbols to reduce binary size by ~90%:
strip src/bitcoincashIId src/bitcoincashII-cli src/bitcoincashII-tx src/bitcoincashII-wallet
sudo make installThis installs binaries to /usr/local/bin/.
./src/bitcoincashIId --versionExpected output:
Bitcoin Cash II version v27.0.0
Copyright (C) 2009-2025 The Bitcoin Cash II developers
...
Fedora:
sudo dnf install -y \
gcc-c++ \
libtool \
make \
autoconf \
automake \
python3 \
libevent-devel \
boost-devel \
libdb-devel \
libdb-cxx-devel \
sqlite-devel \
miniupnpc-devel \
zeromq-devel \
qrencode-devel \
gitCentOS/RHEL 8+:
sudo dnf install -y epel-release
sudo dnf install -y \
gcc-c++ \
libtool \
make \
autoconf \
automake \
python3 \
libevent-devel \
boost-devel \
libdb-devel \
libdb-cxx-devel \
sqlite-devel \
miniupnpc-devel \
zeromq-devel \
gitgit clone https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
./autogen.sh
mkdir build && cd build
../configure --without-gui
make -j$(nproc)sudo pacman -S --needed \
base-devel \
boost \
libevent \
sqlite \
miniupnpc \
libnatpmp \
zeromq \
qrencode \
db \
gitgit clone https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
./autogen.sh
mkdir build && cd build
../configure --without-gui
make -j$(nproc)xcode-select --install/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install \
automake \
libtool \
boost \
pkg-config \
libevent \
sqlite \
miniupnpc \
libnatpmp \
zeromq \
qrencode \
berkeley-db@4git clone https://github.com/BitcoincashII/bitcoincashII-core.git
cd bitcoincashII-core
./autogen.sh
mkdir build && cd build
../configure --without-gui --with-boost=$(brew --prefix boost)
make -j$(sysctl -n hw.ncpu)sudo apt install -y \
g++-mingw-w64-x86-64-posix \
mingw-w64-x86-64-dev \
nsiscd depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
cd .../autogen.sh
mkdir build && cd build
../configure --prefix=$PWD/../depends/x86_64-w64-mingw32 --without-gui
make -j$(nproc)The Windows executables will be in src/ with .exe extensions.
# Start in foreground
./bitcoincashIId
# Start in background (daemon mode)
./bitcoincashIId -daemon
# Start with specific data directory
./bitcoincashIId -datadir=/path/to/data./bitcoincashII-cli stop./bitcoincashII-cli getblockchaininfo./bitcoincashII-cli getpeerinfoCreate a configuration file at ~/.bitcoincashII/bitcoincashII.conf:
# Network
listen=1
maxconnections=125
# RPC
server=1
rpcuser=yourusername
rpcpassword=yourpassword
rpcallowip=127.0.0.1
# Performance
dbcache=450
maxmempool=300
# Optional: Prune old blocks (saves disk space)
# prune=10000| OS | Default Location |
|---|---|
| Linux | ~/.bitcoincashII/ |
| macOS | ~/Library/Application Support/BitcoinCashII/ |
| Windows | %APPDATA%\BitcoinCashII\ |
Add to your bitcoincashII.conf:
# Mining address (CashAddr format)
miningaddress=bitcoincashii:qp...youraddress...
# Generate blocks (testnet/regtest only)
# gen=1BCH2 uses SHA-256d and is compatible with standard Bitcoin mining pools. Configure your miner to connect to a BCH2 mining pool with:
- Algorithm: SHA-256d
- Port: Pool-specific
- Stratum: Standard stratum protocol
./bitcoincashII-cli getblocktemplate '{"rules": []}'# Get blockchain info
./bitcoincashII-cli getblockchaininfo
# Get block count
./bitcoincashII-cli getblockcount
# Get block hash
./bitcoincashII-cli getblockhash 1000
# Get block details
./bitcoincashII-cli getblock "blockhash"# Create new wallet
./bitcoincashII-cli createwallet "mywallet"
# Get new address
./bitcoincashII-cli getnewaddress
# Get balance
./bitcoincashII-cli getbalance
# Send coins
./bitcoincashII-cli sendtoaddress "bitcoincashii:qp..." 1.0
# List transactions
./bitcoincashII-cli listtransactions# Get network info
./bitcoincashII-cli getnetworkinfo
# Get peer info
./bitcoincashII-cli getpeerinfo
# Add node manually
./bitcoincashII-cli addnode "ip:8339" "add"| Parameter | Value |
|---|---|
| P2P Port | 8339 |
| RPC Port | 8342 |
| Network Magic | 0xb2c2b2c2 |
| Address Prefix | bitcoincashii:q... (P2PKH) |
| Address Prefix | bitcoincashii:p... (P2SH) |
| Parameter | Value |
|---|---|
| P2P Port | 18338 |
| RPC Port | 18332 |
dnsseed1.bch2.orgdnsseed2.bch2.org
144.202.73.66:8339 (Dallas, USA)
108.61.190.83:8339 (Frankfurt, Germany)
64.176.215.202:8339 (New Jersey, USA)
45.32.138.29:8339 (Silicon Valley, USA)
139.180.132.24:8339 (Singapore)
Another instance is running. Stop it first:
./bitcoincashII-cli stopOr kill the process:
pkill bitcoincashIIdCorrupted database. Re-sync:
./bitcoincashIId -reindexInstall boost:
# Ubuntu/Debian
sudo apt install libboost-dev
# Fedora
sudo dnf install boost-devel
# macOS
brew install boostInstall libevent:
# Ubuntu/Debian
sudo apt install libevent-dev
# Fedora
sudo dnf install libevent-devel
# macOS
brew install libeventBCH2 is a fork of Bitcoin II, which is a fork of Bitcoin Core.
See AUTHORS for the list of contributors.
Bitcoin Cash II Core is released under the terms of the MIT license. See COPYING for more information.
- Website: https://bch2.org
- GitHub: https://github.com/BitcoincashII
- Block Explorer: https://explorer.bch2.org