Sei Network (atlantic-2) services

EXPLORER : https://explorer.theamsolutions.info

 Original DOCS HERE

 
NODE SETUP
 

Install GO and dependencies HERE

                                                                                                 Install binaries & Run node.

cd $HOME
git clone https://github.com/sei-protocol/sei-chain.git
cd sei-chain
ver=$(curl -sS https://rpc.atlantic-2.seinetwork.io/abci_info | jq -r .response.version)
git checkout ${ver} 
make install

seid config chain-id atlantic-2
seid init <node-name> --chain-id atlantic-2

wget -qO $HOME/.sei/config/genesis.json https://raw.githubusercontent.com/sei-protocol/testnet/main/atlantic-2/genesis.json

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

sudo systemctl enable seid.service 
sudo systemctl daemon-reload
 

 

STATE SYNC MODE

sudo systemctl stop seid.service
mv $HOME/.sei/data/priv_validator_state.json $HOME
rm -rf $HOME/.sei/data $HOME/.sei/wasm ; mkdir $HOME/.sei/data
mv $HOME/priv_validator_state.json $HOME/.sei/data
bpeers=$(curl -sS https://raw.githubusercontent.com/AlexToTheMoon/AM-Solutions/main/files/atlantic-2-bpeers.txt)
sed -i -e "s|^bootstrap-peers *=.*|bootstrap-peers = \"$bpeers\"|" $HOME/.sei/config/config.toml
sed -i.bak -e "s|^persistent-peers *=.*|persistent-peers \
 =  \"7f40c6e4bbc4abaf6b8f8d4e262a47eb2a018eef@162.19.95.240:26656\"|" ~/.sei/config/config.toml

SNAP_RPC="https://rpc.atlantic-2.seinetwork.io:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 65000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .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/.sei/config/config.toml; \
sed -i.bak -e "s|^use-p2p *=.*|use-p2p = true|" $HOME/.sei/config/config.toml

sudo systemctl restart seid
sudo journalctl -u seid -f -o cat


 

DATA SNAPSHOT 

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

snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">ss-atlantic-2*.*tar" | tr -d ">")
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
sudo systemctl stop seid
mv $HOME/.sei/data/priv_validator_state.json $HOME
rm -rf  $HOME/.sei/data $HOME/.sei/wasm
tar xf $HOME/${snap} -C $HOME/.sei
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.sei/data
sudo systemctl restart seid
journalctl -u seid -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.