Join The Mainnet

Buy tokens for staking your validator from Bilaxy or on Uniswap

The staking token for the Starname network is IOV, which can be purchased outright from Bilaxy. If you prefer to buy on Uniswap then you'll have to convert the WIOV from Uniswap to IOV by using the swap feature of the Starname Manager.

On Uniswap, please confirm that the WIOV ERC20 contract is 0x175D9Dfd6850AA96460E29bC0cEad05756965E91 with token name "Starname" and ticker "WIOV".

Update starname.env and

This document assumes that you are migrating your testnet nodes to mainnet nodes. Given that, the setup for the mainnet is basically identical to that for a testnet. The only difference between the two are entries in /etc/systemd/system/starname.env file and ${DIR_IOVNS}/, so let's re-create those files.

sudo su # make life easier for the next ~60 lines

systemctl stop starname.service

cd /etc/systemd/system

export USER_IOV=iov # "iov" is not recommended
export SIGNER=dave # signer for the gentx/create-validator

# overwrite the environment file for the IOV Name Service services
cat <<__EOF_IOVNS_ENV__ > starname.env
# operator variables

# directories (without spaces to ease pain)

# artifacts

chgrp $(id -g ${USER_IOV}) starname.env
chmod g+r starname.env

set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars


# create, a wrapper for iovnsd
cat <<__EOF_IOVNSD_SH__ >

exec $PWD/iovnsd start \\
  --home=${DIR_WORK} \\
  --minimum-gas-prices='1.0uiov' \\
  --moniker="${MONIKER}" \\
  --p2p.laddr='tcp://' \\
  --p2p.seeds='c00e2f8ff7f521cc6385dcc4ad4c7053d9895e9e@' \\
  --rpc.laddr='tcp://' \\
  --rpc.unsafe=false \\


chgrp $(id -g ${USER_IOV})
chmod a+x

# initialize the IOV Name Service
su - ${USER_IOV}
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars

rm -rf ${DIR_WORK} && mkdir -p ${DIR_WORK} && cd ${DIR_WORK}

# initialize IOV Name Service (iovnsd)
${DIR_IOVNS}/iovnsd init ${MONIKER} --chain-id ${CHAIN_ID} --home ${DIR_WORK} 2>&1 | jq -r .chain_id

curl --fail > config/genesis.json
sha256sum config/genesis.json | grep 27898a4fb858ddee28202b6f8e8d0f4b608d9587f39529f7a18be331c5d7a4fc || echo 'BAD GENESIS FILE!'

exit # ${USER_IOV}

journalctl -f -u starname.service & # watch the chain sync
systemctl start starname.service

exit # root

Specialize the nodes

Now that you have sentry node(s) and a validator, they need to be made aware of their role and pointed at each other.

Sentry node configuration

Change ${DIR_IOVNS}/ so that each of your sentry nodes gossip while keeping their validator hidden. On the validator node, execute curl -s http://localhost:46657/status | jq -r to get the value for VALIDATOR_ID. Change the ${DIR_IOVNS}/ to something like


exec $PWD/iovnsd start \
  --home=${DIR_WORK} \
  --minimum-gas-prices='1.0uiov' \
  --moniker='${MONIKER}' \
  --p2p.laddr='tcp://' \
  --p2p.pex=true \
  --p2p.private_peer_ids='VALIDATOR_ID' \
  --p2p.seeds='c00e2f8ff7f521cc6385dcc4ad4c7053d9895e9e@' \
  --rpc.laddr='tcp://' \
  --rpc.unsafe=false \

There are a lot more tendermint configuration options available than those shown above. Customize them as you see fit. When you're done customizing then execute sudo systemctl restart starname.service on each sentry node.

Validator configuration

Change ${DIR_IOVNS}/ so that the node gossips with its sentry node(s) only, ie set p2p.pex=false and add an explicit list of p2p.persistent_peers. Obtain the sentry node ids for p2p.persistent_peers by executing curl -s http://localhost:46657/status | jq -r on each sentry node. You know the IP and PORT of the nodes, so include them appropriately. Change the ${DIR_IOVNS}/ file to something like


exec $PWD/iovnsd start \
  --home=${DIR_WORK} \
  --minimum-gas-prices='1.0uiov' \
  --moniker='${MONIKER}' \
  --p2p.laddr='tcp://' \
  --p2p.pex=false \
  --priv_validator_laddr='tcp://HSM_IP:HSM_PORT' \
  --rpc.laddr='tcp://' \
  --rpc.unsafe=false \

Setup of the HSM is detailed here. When you're done customizing then execute sudo systemctl restart iovns.service.

Light-up the validator

Once your sentry nodes and validator are sync'ed then the final step to becoming a validator is to execute the create-validator command just like for any Cosmos-based chain.

set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars


iovnscli tx staking create-validator \
  --moniker "${MONIKER}" \
  --amount 100000000uiov \
  --commission-max-change-rate 0.01 \
  --commission-max-rate 0.2 \
  --commission-rate 0.1 \
  --min-self-delegation 1 \
  --from ${SIGNER} \
  --pubkey $(iovnsd tendermint show-validator --home ${DIR_WORK}) \
  --gas-prices 1.0uiov \
  --node \
  --chain-id ${CHAIN_ID} 

Happy validating!

Last updated