Join The Mainnet
Requirements: install iris
Run a Full Node
Start node from genesis
You must use irishub v1.0.1 to initialize your node.
# initialize node configurations iris init <moniker> --chain-id=irishub-1 # download mainnet public config.toml and genesis.json curl -o ~/.iris/config/config.toml https://raw.githubusercontent.com/irisnet/mainnet/master/config/config.toml curl -o ~/.iris/config/genesis.json https://raw.githubusercontent.com/irisnet/mainnet/master/config/genesis.json # start the node (you can also use "nohup" or "systemd" to run in the background) iris start
Next, your node will process all chain upgrades. Between each upgrade, you must use the specified version to catch up with the block. Don't worry about using the old version at the upgrade height, the node will be halted automatically.
|Proposal||Start height||Upgrade height||irishub version|
You may see some connection errors, it does not matter, the P2P network is trying to find available connections
Try to add some of the Community Peers to
persistent_peers in the config.toml
If you want to quickly start the node and join IRIS Hub without historical data, you can consider using the state_sync function.
Upgrade to Validator Node
Create a Wallet
# create a new wallet iris keys add <key-name>
write the seed phrase in a safe place! It is the only way to recover your account if you ever forget your password.
Confirm your node has caught-up
# if you have not installed jq # apt-get update && apt-get install -y jq # if the output is false, means your node has caught-up iris status | jq .sync_info.catching_up
Only if your node has caught-up, you can run the following command to upgrade your node to be a validator.
iris tx staking create-validator \ --pubkey=$(iris tendermint show-validator) \ --moniker=<your-validator-name> \ --amount=<amount-to-be-delegated, e.g. 10000iris> \ --min-self-delegation=1 \ --commission-max-change-rate=0.1 \ --commission-max-rate=0.1 \ --commission-rate=0.1 \ --gas=100000 \ --fees=0.6iris \ --chain-id=irishub-1 \ --from=<key-name>
config directory located in your iris home (default ~/.iris/) carefully! It is the only way to recover your validator.
If there are no errors, then your node is now a validator or candidate (depending on whether your delegation amount is in the top 100)