This document introduces how to join the mainnet of smartBCH as a normal node (non-validator node).
Before you start, you must have a trusted server running bitcoincashnode's client with RPC enabled. The executable smartbchd will connect to it for querying staking information.
First, build the latest binary by running the steps of this documentarrow-up-right .
Second, prepare the working directory:
Copy cp ~/smart_bch/smartbch/smartbchd ~/build/smartbchd
cd ~
rm -rf .smartbchd
~ /build/smartbchd init mynode --chain-id 0x2710
wget https://github.com/smartbch/artifacts/releases/download/v0.0.6/dot.smartbchd.tgz
tar zxvf dot.smartbchd.tgz
cp -rf dot.smartbchd/ * .smartbchd/ Third, open the ~/.smartbchd/config/app.toml file to modify the information of the bitcoincashnode's client with RPC enabled.
Copy # BCH mainnet rpc url (Only BCHN & BCHD are well tested)
mainnet-rpc-url = "http://ip-address:8332"
# BCH mainnet rpc username
mainnet-rpc-username = "<my user name>"
# BCH mainnet rpc password
mainnet-rpc-password = "<my password>" Last, start smartbchd.
You can also run your smartBCH node using Docker. First, clone smartBCH and build Docker image for mainnet (or pull prebuilt images from DockerHubarrow-up-right ):
Second, prepare smartBCH mainnet home directory:
Third, edit smartbchd_home/config/app.toml, modify the information of the bitcoincashnode's client:
Last, start smartbchd using Docker like this: