Archway "Constantine-3" testnet  Services

RPC : https://rpc-archway-constantine.theamsolutions.info:443 API : https://api-archway-constantine.theamsolutions.info:443
gRPC : https://grpc-archway-constantine.theamsolutions.info:443

Explorer : https://explorer.theamsolutions.info

 
 NODE SETUP GUIDE

Official docs HERE

 

Install GO and dependencies HERE

git clone https://github.com/archway-network/archway.git
cd archway
ver=$(curl -s https://rpc-archway-constantine.theamsolutions.info/abci_info | jq -r ."result"."response"."version")
git checkout v${ver}
make install
archwayd version 

archwayd init <NodeName> --chain-id constantine-3

wget -qO $HOME/.archway/config/genesis.json https://raw.githubusercontent.com/archway-network/networks/main/constantine-3/genesis.json
wget -qO $HOME/.archway/config/addrbook.json ttps://snapshots.theamsolutions.info/constantine-3.addr.json
archwayd tendermint unsafe-reset-all --home ~/.archway/ --keep-addr-book

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

sudo systemctl enable archwayd.service
sudo systemctl daemon-reload
sudo systemctl restart archwayd.service
sudo journalctl -u archwayd.service -f -o cat

 

DATA SNAPSHOT
 

#check snapshot height  : curl -s https://snapshots.theamsolutions.info | egrep -o ">constantine-3*.*tar" | tr -d ">"

snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">constantine-3*.*tar" | tr -d ">")
sudo systemctl stop archwayd
mv $HOME/.archway/data/priv_validator_state.json $HOME
rm -rf  $HOME/.archway/data  $HOME/.archway/wasm 
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
tar xf $HOME/${snap} -C $HOME/.archway
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.archway/data
wget -qO $HOME/.archway/config/addrbook.json https://snapshots.theamsolutions.info/constantine-3.addr.json
sudo systemctl restart archwayd
sudo journalctl -u archwayd -f -o cat

 

STATE SYNC
 

sudo systemctl stop archwayd.service
wget -qO $HOME/.archway/config/addrbook.json https://snapshots.theamsolutions.info/constantine-3.addr.json
mv $HOME/.archway/data/priv_validator_state.json $HOME
archwayd tendermint unsafe-reset-all --home ~/.archway/ --keep-addr-book
mv $HOME/priv_validator_state.json $HOME/.archway/data

SNAP_RPC="https://rpc-archway-constantine.theamsolutions.info:443"; \
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/.archway/config/config.toml

sudo systemctl restart archwayd.service
sudo journalctl -u archwayd.service -f -o cat

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.