Testnet
Joining the BitNet Testnet
This guide explains how to connect to the BitNet testnet, configure your node, and become a testnet validator.
1. Select the Testnet
Choose the testnet version by setting the appropriate Chain ID and retrieving the corresponding genesis file and seed peers. You can find these in the BitNet testnet repository.
Ensure your server timezone is set to UTC. Misconfigured timezones may cause LastResultsHash mismatches that halt the node.
2. Install the BitNet Binary
Install the BitNet CLI binary (bitnetd) following the official installation instructions.
Ensure you install the correct version for the current testnet. Run:
bitnetd version3. Save Chain ID (Optional)
To avoid passing --chain-id in every CLI command, you can set it globally:
bitnetd config chain-id bitnet_testnet_90004. Initialize the Node
Initialize your node:
bitnetd init <your_moniker> --chain-id bitnet_testnet_9000Moniker must contain only ASCII characters.
5. Add Genesis File
Download the testnet genesis.json and place it into your config folder:
wget -P ~/.bitnetd/config https://archive.bitnet.org/testnet/genesis.json
bitnetd validate-genesis6. Configure Seed and Persistent Peers
Add Seeds
Open ~/.bitnetd/config/config.toml and set:
seeds = "<node_id>@<ip>:<port>"Or auto-configure using:
SEEDS=$(curl -sL https://raw.githubusercontent.com/bitnet/testnets/main/seeds.txt | awk '{print $1}' | paste -s -d, -)
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" ~/.bitnetd/config/config.tomlAdd Persistent Peers
PEERS=$(curl -sL https://raw.githubusercontent.com/bitnet/testnets/main/peers.txt | sort -R | head -n 10 | awk '{print $1}' | paste -s -d, -)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.bitnetd/config/config.toml7. Start Your Node
bitnetd startOnce two-thirds of testnet validators are online, block production begins.
8. Create a Validator (Optional)
After getting testnet tokens from the faucet, submit a validator creation transaction:
bitnetd tx staking create-validator \
--amount=1000000abnc \
--pubkey=$(bitnetd tendermint show-validator) \
--moniker="BitNetTester" \
--chain-id=bitnet_testnet_9000 \
--commission-rate="0.05" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="auto" \
--gas-prices="0.025abnc" \
--from=<key_name>9. Resetting or Restarting the Node
If required, reset data:
rm $HOME/.bitnetd/config/addrbook.json
bitnetd tendermint unsafe-reset-all --home $HOME/.bitnetdThen restart:
bitnetd start10. Share Your Peer
To help others find you, get your node ID:
bitnetd tendermint show-node-idShare it on the BitNet Discord's #find-peers channel.
Last updated