1) Install GO

ver="1.17"
cd $HOME
wget "<https://golang.org/dl/go$ver.linux-amd64.tar.gz>"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile

**go version
#***go version go1.17 linux/amd64*

2) Installing gaiad

git clone <https://github.com/cosmos/gaia>
cd gaia
git checkout v6.0.3
make build
sudo cp ./build/gaiad /usr/local/bin/gaiad
# ***Check if gaiad installed correctly***
gaiad version
# *main-45c4313ec05acf4d50d4d796b1dc51452f206ae6*

3) Generating wallet in the custom gaiad testnet

gaiad keys add wallet --keyring-backend=test
**# OUTPUT EXAPMLE**
#- name: wallet
#  type: local
#  address: cosmos1l7zxe3k5mm4zvcha7tjq3we5ezh5nurc7kvk27
#  pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Aq8hKVNhL1h4uOzxgjVOyGbYvED16k4r8ZumQcT3jc+m"}'
#  mnemonic: ""
#
# **Important** write this mnemonic phrase in a safe place.
# It is the only way to recover your account if you ever forget your password.
#
# divide XXXXXX XXXXX auto rack slush fitness grace shield hold lion space extra broccoli normal run deer surface insect loyal choice XXXXX
# root@ded02-rpc:~#
#

4) Configuring custom testnet chain

MONIKER=Alphabet ## <--replace with your VALIDATOR NAME. Do not use commas, space, special symbols in the moniker name
CUSTOM_CHAINID=${MONIKER,,}-1 ## lowercase string Alphabet --> alphabet-1
gaiad init ${MONIKER} --chain-id $CUSTOM_CHAINID
gaiad add-genesis-account $(gaiad keys show wallet -a --keyring-backend=test) 1000000000stake,1000000000${MONIKER,,}
gaiad gentx wallet 1000000000stake --chain-id $CUSTOM_CHAINID --keyring-backend=test --moniker=$MONIKER
gaiad collect-gentxs --gentx-dir ~/.gaia/config/gentx/
echo "export MONIKER=${MONIKER}" >> $HOME/.bash_profile
echo "export CUSTOM_CHAINID=${CUSTOM_CHAINID}" >> $HOME/.bash_profile
source $HOME/.bash_profile

5) Creating gaiad service

sudo tee /etc/systemd/system/gaiad.service > /dev/null <<EOF
[Unit]
Description=GAIAD
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which gaiad) start --rpc.laddr=tcp://0.0.0.0:26657 --grpc.address="0.0.0.0:9090"
Restart=on-failure
RestartSec=10
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload && sudo systemctl enable gaiad
sudo systemctl restart gaiad && journalctl -u gaiad -f

6) Check balance on the custom testnet

We check balance of the wallet we generated in the step 3

In the example below my wallet has 1000000000alphabet coins :)

gaiad q bank balances cosmos1l7zxe3k5mm4zvcha7tjq3we5ezh5nurc7kvk27
# balances:
# - amount: "1000000000"
# denom: alphabet
# pagination:
# next_key: null
# total: "0"