Let's start by defining what Testnet5 is. It's a public network defined for testing Bitcoin applications, defined by
BIP 95, to replace testnet4. Notably, it doesn't have any weird timing rules like the previous test networks. It's the latest iteration of the testing network, this means that if you want to test your Bitcoin application, you should probably use testnet5.
Now, testnet5 is already up and running since a few days ago (Genesis block mined on 2026-11-14 05:03 UTC), but if you try to connect to it with the latest release of Bitcoin Core (v32.1.0) you won't find a way to do it. The application only shows testnet3 and testnet4:
./bitcoin-cli --version
Bitcoin Core RPC client version v32.1.0
Copyright (C) 2009-2026 The Bitcoin Core developers
./bitcoin-cli --help | grep testnet
Connect to JSON-RPC on <port> (default: 8332, testnet: 18332, testnet4:
testnet4, signet, regtest
-testnet
Use the testnet3 chain. Equivalent to -chain=test. Support for testnet3
Consider moving to testnet4 now by using -testnet4.
-testnet4
Use the testnet4 chain. Equivalent to -chain=testnet4.
So, in this guide I'll show you how to connect to testnet5 with Bitcoin Core, which would be useful until they release a new version that supports it.
Let's start by installing the required libraries, as described in the official documentation:
https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.mdsudo apt-get install git build-essential cmake python3 libboost-dev libsqlite3-dev libcapnp-dev capnproto libzmq3-dev pkgconf systemtap-sdt-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools qt6-tools-dev-tools libgl-dev qt6-wayland libqrencode-dev
Now we're going to create a folder that will contain everything so that you can just remove it all when you're done if you want to:
mkdir ~/bitcoin_testnet5
mkdir ~/bitcoin_testnet5/data
Now, in that folder we're going to grab a specific version of the Bitcoin Core source code, specifically the one where the testnet5 is added, and build it:
cd ~/bitcoin_testnet5
git clone https://github.com/bitcoin/bitcoin.git bitcoin-core-for-testnet5
cd bitcoin-core-for-testnet5
git fetch origin pull/35861/head:testnet5
git checkout testnet5
cmake -B build
cmake --build build -j"$(nproc)"
That should take about 10 minutes or so. Meanwhile that's running (or after it's done), let's create a configuration file called
bitcoin_testnet5.conf in our folder (inside ~/bitcoin_testnet5) with :
chain=testnet5
[testnet5]
addnode=lapis.erisian.com.au:18353
rpcuser=YOUR_RPC_USERNAME
rpcpassword=YOUR_RPC_PASSWORD
This specifies that we want to connect to testnet5 and provides a peer to connect to. This particular node is run by Anthony Towns. You can read more about this here:
https://gist.github.com/ajtowns/ebb148819c6028387271e6f0dce5e1daSome other well known nodes you might want to connect to come from the libbitcoin project:
https://libbitcoin.org/configuration/public.htmlcarmine.libbitcoin.net:18353
wormer.libbitcoin.net:18353
I selected only the original erisian node and it went well. The next step is to make sure everything looks fine, in particular that we have the option for testnet5:
cd ~/bitcoin_testnet5
./bitcoin-core-for-testnet5/build/bin/bitcoind --help | grep testnet5
testnet5:
testnet4: 127.0.0.1:48334=onion, testnet5: 127.0.0.1:18354=onion,
testnet4: 48333, testnet5: 18353, signet: 38333, regtest: 18444).
testnet4, testnet5, signet, regtest
-testnet5
Use the testnet5 chain. Equivalent to -chain=testnet5.
18332, testnet4: 48332, testnet5: 18352, signet: 38332, regtest:
We're ready to start the node now and let it sync (all data will be written to the data folder):
cd ~/bitcoin_testnet5
./bitcoin-core-for-testnet5/build/bin/bitcoind -conf=/home/user/bitcoin_testnet5/bitcoin_testnet5.conf -datadir=/home/user/bitcoin_testnet5/data
It should not take too long to sync as the testnet5 network is quite new. After it is synced, leave it there running (you can stop it with CTRL-C) and open a new terminal and query it:
cd ~/bitcoin_testnet5/bitcoin-core-for-testnet5/build/bin
./bitcoin-cli -conf=/home/user/bitcoin_testnet5/bitcoin_testnet5.conf -getinfo
Since we're using the same configuration file, everything is already setup, so you should see something like this:
Chain: testnet5
Blocks: 8257
Headers: 8257
Verification progress: 100.0000%
Difficulty: 226589193.0599006
Network: in 0, out 3, total 3
Version: 320100
Time offset (s): 0
Proxies: n/a
Min tx relay fee rate (BTC/kvB): 0.00000100
Warnings: (none)
That's great!, now let's create a wallet, and name it
t5wallet (you can change that):
./bitcoin-cli -conf=/home/user/bitcoin_testnet5/bitcoin_testnet5.conf createwallet t5wallet
You should see something like this:
Now, let's get an address from it:
./bitcoin-cli -conf=/home/user/bitcoin_testnet5/bitcoin_testnet5.conf -rpcwallet=t5wallet getnewaddress
You will see your new address, starting with
tb1.
That's it!, you now have a fully working node connected to testnet5 and a wallet you can use.
Happy testing!