Mainnet
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 step 0, 1, 2, 3 and 4 of this document.
Second, prepare the working directory:
1
cp ~/smart_bch/smartbch/smartbchd ~/build/smartbchd
2
cd ~
3
rm -rf .smartbchd
4
~/build/smartbchd init mynode --chain-id 0x2710
5
wget https://github.com/smartbch/artifacts/releases/download/v0.0.3/dot.smartbchd.tgz
6
tar zxvf dot.smartbchd.tgz
7
cp -rf dot.smartbchd/* .smartbchd/
Copied!
Third, open the ~/.smartbchd/config/app.toml file to modify the information of the bitcoincashnode's client with RPC enabled.
1
# BCH mainnet rpc url
2
mainnet-rpc-url = "http://ip-address:8332"
3
​
4
# BCH mainnet rpc username
5
mainnet-rpc-username = "<my user name>"
6
​
7
# BCH mainnet rpc password
8
mainnet-rpc-password = "<my password>"
Copied!
Last, start smartbchd.
1
cd ~/build
2
./smartbchd start --mainnet-genesis-height=698502
Copied!
Last modified 3mo ago
Copy link