Join The Mainnet

TIP

Requirements: install iris

Run a Full 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

TIP

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

Upgrade to Validator Node

Create a Wallet

You can create a new wallet or import an existing one, then get some IRIS from the exchanges or anywhere else into the wallet you just created, .e.g.

# create a new wallet
iris keys add <key-name>

WARNING

Important

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

Create Validator

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>

WARNING

Important

Backup the 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)

Read more: