"DWS" Sirius Testnet | Guide  | State Sync | Data Snapshot

Explorer https://explorer.theamsolutions.info

RPC  http://65.108.44.149:46767  | API https://dws-api.theamsolutions.info

   Official docs HERE

 
STEP BY STEP INSTRUCTIONS
 
 

Install GO & Dependencies  HERE

Install binaries & Run node

git clone https://github.com/deweb-services/deweb.git
cd $HOME/deweb
git checkout tags/v0.3.1
make install
dewebd version --long | head
#right output : version: 0.3.1 , commit: 05a3111414ae9b510672925166b727371b669246
 

dewebd init <NODE_NAME> --chain-id deweb-testnet-sirius

wget -qO $HOME/.deweb/config/genesis.json https://raw.githubusercontent.com/deweb-services/deweb/main/genesis.json

#check genesis hash
sha256sum $HOME/.deweb/config/genesis.json
#right output: 5316dc5abf1bc46813b673e920cb6faac06850c4996da28d343120ee0d713ab9


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

wget -qO $HOME/.deweb/config/addrbook.json http://94.250.203.6:90/dws-addrbook.json

sed -E -i 's/minimum-gas-prices = \".*\"/minimum-gas-prices = \"0.001udws\"/' $HOME/.deweb/config/app.toml

sudo systemctl enable dewebd && sudo systemctl daemon-reload \
&& sudo systemctl restart dewebd
#LOGS 
journalctl -u dewebd -f -o cat 

STATE SYNC 

sudo systemctl stop dewebd; \
dewebd tendermint unsafe-reset-all --home $HOME/.deweb --keep-addr-book

#If U don`t have address book
wget -q -O $HOME/.deweb/config/addrbook.json http://94.250.203.6:90/dws-addrbook.json

SNAP_RPC="http://65.108.44.149:46767"; \
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/.deweb/config/config.toml

sudo systemctl restart dewebd
#LOGS 
journalctl -u dewebd -f -o cat 

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

DATA SNAP
 

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

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

CREATE VALIDATOR

 dewebd tx staking create-validator \
 --amount=4900000udws \
 --pubkey=$(dewebd tendermint show-validator) \
 --moniker="<MONIKER>" \
 --chain-id="<CHAIN-ID>" \
 --from=<KEY-NAME> \
 --commission-rate=0.1 \
 --commission-max-rate=0.2 \
 --commission-max-change-rate=0.1 \
 --min-self-delegation=1 \
--fees 250udws


USEFUL COMMANDS


#check node status
curl localhost:26657/status
#or
dewebd  status | jq

#check all available wallets
dewebd  keys list

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

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

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

#command for delegating
dewebd tx staking delegate <valoper-address> 10000000udws --chain-id <CHAIN-ID> --from <wallet-name> --fees 250udws

#Withdraw all-rewards with commisions
dewebd tx distribution withdraw-rewards <valoper-address> --from <wallet-name>  --chain-id <CHAIN-ID> --commission --yes --fees 250udws

#unjail command
dewebd tx slashing unjail --from <wallet_name> --chain-id <CHAIN-ID> --fees 250udws

#vote | options : yes/no/no_with_veto/abstain
dewebd tx gov vote 1 yes --from <wallet_name> --chain-id <CHAIN-ID> --fees 250udws

 

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.