Hypersign Protocol Testnet -  "jagrat"

Explorer https://explorer.theamsolutions.info

RPC   http://65.108.238.61:56657 | API https://hyper-api.theamsolutions.info

   Official docs HERE

 
STEP BY STEP INSTRUCTIONS
 
 

Install Go

wget https://go.dev/dl/go1.18.linux-amd64.tar.gz \
&& sudo tar -xvf go1.18.linux-amd64.tar.gz && sudo mv go /usr/local \
&& echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile \
&& source ~/.bash_profile; go version 

Install binaries & Run node

git clone https://github.com/hypersign-protocol/hid-node.git
cd hid-node
hver=$(curl -s http://65.108.238.61:56657/abci_info? | jq -r ."result"."response"."version")
git checkout ${hver}
make install

hid-noded init <NAME> --chain-id jagrat

wget -qO $HOME/.hid-node/config/genesis.json https://github.com/hypersign-protocol/networks/raw/master/testnet/jagrat/final_genesis.json
wget -qO $HOME/.hid-node/config/addrbook.json http://94.250.203.6:90/addrbook-hyper.json


#check genesis hash
sha256sum $HOME/.hid-node/config/genesis.json
#right output: 7de2e77cff6d601387a46a760e9c0d7a573b2cfdbdaebb0f04512878543fc0a1


sudo tee /etc/systemd/system/hid-noded.service << EOF
[Unit]
Description=Hypersign
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which hid-noded) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable hid-noded
sudo systemctl daemon-reload
sudo systemctl restart hid-noded
journalctl -u hid-noded -f -o cat

STATE SYNC 

sudo systemctl stop hid-noded

SNAP_RPC="http://65.108.238.61:56657"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.hid-node/config/config.toml

wget -qO $HOME/.hid-node/config/addrbook.json http://94.250.203.6:90/addrbook-hyper.json
hid-noded tendermint unsafe-reset-all --home $HOME/.hid-node --keep-addr-book

sudo systemctl restart hid-noded
journalctl -u hid-noded -f -o cat

#switch off state sync after sync
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.hid-node/config/config.toml

DATA SNAP
 

#check snapshot height  : curl -s http://94.250.203.6:90 | egrep -o ">hyper-snap*.*tar" | tr -d ">"

snap=$(curl -s http://94.250.203.6:90 | egrep -o ">hyper-snap*.*tar" | tr -d ">")
sudo systemctl stop hid-noded
mv $HOME/.hid-node/data/priv_validator_state.json $HOME
rm -rf  $HOME/.hid-node/data
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.hid-node
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.hid-node/data
wget -q -O $HOME/.hid-node/config/addrbook.json http://94.250.203.6:90/addrbook-hyper.json
sudo systemctl restart hid-noded
journalctl -u hid-noded -f -o cat

CREATE VALIDATOR

 hid-noded tx staking create-validator \
 --amount=1000000uhid \
 --pubkey=$(hid-noded tendermint show-validator) \
 --moniker="<MONIKER>" \
 --chain-id="<CHAIN-ID>" \
 --from=<KEY-NAME> \
 --commission-rate=0.05 \
 --commission-max-rate=0.2 \
 --commission-max-change-rate=0.05 \
 --min-self-delegation=1 \
--gas=auto


USEFUL COMMANDS


#check node status
curl localhost:26657/status
#or
hid-noded status | jq

#check all available wallets
hid-noded keys list

#balance of your wallet
hid-noded query bank balances <wallet-key>

#find valoper address
hid-noded keys show <wallet-key> --bech val -a

#check validator staking state
hid-noded query staking validator <valoper-address> --chain-id <CHAIN-ID>

#command for delegating
hid-noded tx staking delegate <valoper-address> 10000000uhid --chain-id <CHAIN-ID> --from <wallet-name> --gas=auto

#Withdraw all-rewards with commisions
hid-noded tx distribution withdraw-rewards <valoper-address> --from <wallet-name>  --chain-id <CHAIN-ID> --commission --yes --gas=auto

#unjail command
hid-noded tx slashing unjail --from <wallet_name> --chain-id <CHAIN-ID> --gas=auto

#vote | options : yes/no/no_with_veto/abstain
hid-noded tx gov vote 1 yes --from <wallet_name> --chain-id <CHAIN-ID> --gas=auto

 

GOOD LUCK!

 

 

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details and accept the service to view the translations.