https://github.com/erknfe/go-lang
git clone https://github.com/cosmic-horizon/QWOYN
cd QWOYN
git checkout v3.1.0
make install
cd ~
qwoynd init <moniker> --chain-id higgs-boson-3
Create
qwoynd keys add <your_validator_key_name>
Import
qwoynd keys add <your_validator_key_name> --recover
curl http://45.32.76.26:26657/genesis | jq .result.genesis > ~/.qwoynd/config/genesis.json
PERSISTENT_PEERS="[email protected]:26656"
sed -i '/persistent_peers =/c\persistent_peers = "'"$PERSISTENT_PEERS"'"' ~/.qwoynd/config/config.toml
sed -i '/minimum-gas-prices =/c\minimum-gas-prices = "0.025uqwoyn"' ~/.qwoynd/config/app.toml
sudo tee /etc/systemd/system/qwoynd.service > /dev/null <<EOF
[Unit]
Description=Qwoyn Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which qwoynd) start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable qwoynd
sudo systemctl restart qwoynd
journalctl -u qwoynd -f
curl -s localhost:26657/status | jq .result | jq .sync_info
!!! WAIT FOR - catching_up: false
(means node is completely synced) !!!
curl -X POST -d '{"address": "ENTER-YOUR-QWOYN-ADDRESS"}' http://45.32.76.26:8000
qwoynd query bank balances <account_address> --chain-id higgs-boson-3
qwoynd tx staking create-validator \
--amount=<qwoyn_amount> \
--pubkey=$(qwoynd tendermint show-validator) \
--moniker="<node_moniker>" \
--chain-id="higgs-boson-3" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="400000" \
--from=<key_name> \
--fees="1000uqwoyn"
qwoynd tx distribution withdraw-rewards <validator_address> --commission --from <key_name> --gas auto --fees=1000uqwoyn --chain-id higgs-boson-3 -y
qwoynd query bank balances <account_address> --chain-id higgs-boson-3 | awk '/amount:/ {print}' | tr -cd [:digit:]
qwoynd tx staking delegate <validator_address> <amount>uqwoyn --chain-id higgs-boson-3 --gas auto --fees=1000uqwoyn --from <key_name> -y
qwoynd tx staking redelegate <from_validator_address> <to_validator_address> <amount>uqwoyn --from <key_name> --gas auto --fees=1000uqwoyn --chain-id higgs-boson-3
qwoynd tx bank send <key_name> <account_address> <amount>uqwoyn --fees=1000uqwoyn --chain-id higgs-boson-3