For the sake of simplicity we decided to use Cosmos Hub service binary. In order to install it please follow steps from this instruction. It is based on the v9.0.0
version of gaiad
binary.
Please check versiob of used bianry by running this command gaiad version --long
. You should get big list of text and at the beginig of it you should have following lines:
name: gaia
server_name: gaiad
version: v9.0.0
commit: 682770f2410ab0d33ac7f0c7203519d7a99fa2b6
build_tags: netgo ledger
gaiad init "<moniker-name>" --chain-id school-testnet-
# To create new keypair - make sure you save the mnemonics!
gaiad keys add <key-name>
or
# Restore existing odin wallet with mnemonic seed phrase.
# You will be prompted to enter mnemonic seed.
gaiad keys add <key-name> --recover
or
# Add keys using ledger
gaiad keys show <key-name> --ledger
Check your key:
# Query the keystore for your public address
gaiad keys show <key-name> -a
gaiad add-genesis-account <key-name> 1000000000uatom --keyring-backend <os | file>
# Create the gentx.
# Note, your gentx will be rejected if you use any amount greater than 1000000000uatom.
gaiad gentx <key-name> 1000000000uatom --output-document=gentx.json \
--chain-id=school-testnet-3 \
--moniker="<moniker-name>" \
--website=<your-node-website> \
--details=<your-node-details> \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--keyring-backend <os | file>