Testnets

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.

You can run tests with metamask, truffle, or remix.

The Amber Testnet

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:

  1. http://35.220.203.194:8545

  2. https://moeing.tech:9545

Test coin faucet can be found at http://13.214.162.63:8080/faucet or http://moeing.tech: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 0.2Gwei.

To join this testnet as a non-validator node, follow the steps below:

First, build the latest binary by running the steps of this document.

Second, clone & build smartbch:

cd ~/smart_bch
git clone -b v0.4.2 --depth 1 https://github.com/smartbch/smartbch
cd smartbch
go build -tags "params_amber cppbtree" github.com/smartbch/smartbch/cmd/smartbchd

Third, prepare the working directory:

Last, start smartbchd.

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:

Docker

You can also run your smartBCH testnet node using Docker. First, clone smartBCH and build Docker image for testnet (or pull prebuilt images from DockerHub):

Second, prepare smartBCH testnet home directory:

Last, start smartbchd using Docker like this:

Last updated

Was this helpful?