You can test your DApp using a local single-node testnet if you want to set one up. In most cases, though, you might not need to set up a testnet yourself. Instead, you can using an existing testnet. Here are the running testnets you can utilize.
This is a testnet for smartBCH with votes from a BCHN testnet, which has a bitcoincashnode client which mines with CPU.The chain ID is 0x2711. You can use the following JSON-RPC nodes:
Test coin faucet can be found at http://126.96.36.199:8080/faucet
We sincerely thank Allen Day for donating several cloud servers to bring up this testnet.
In this testnet, the gas price can be as low as 1Gwei.
To join this testnet as a non-validator node, follow the steps below:
First, build the latest binary by running the step 0, 1, 2, 3 of this document.
Second, clone & build smartbch from amber branch:
cd ~/smart_bchgit clone -b amber --depth 1 https://github.com/smartbch/smartbchcd smartbchgo build -tags cppbtree github.com/smartbch/smartbch/cmd/smartbchd
Third, prepare the working directory:
cp ~/smart_bch/smartbch/smartbchd ~/build/smartbchdcd ~rm -rf .smartbchd~/build/smartbchd init mynode --chain-id 0x2711wget https://github.com/smartbch/artifacts/releases/download/v0.0.4/dot.smartbchd.tgztar zxvf dot.smartbchd.tgzcp -rf dot.smartbchd/* .smartbchd/
Last, start smartbchd.
~/build/smartbchd start --mainnet-genesis-height=602983
Then you can join the testnet as a non-validator. If want to become a validator, please follow this guide.
If you want to join the underlying BCH testnet, here is the configuration file for bitcoincashnode: