A guide to setting up Seinami full node + join validator

Install Full Node

Dependencies

sudo apt update
sudo apt install make build-essential jq

Install Go

# Download latest binary
wget <https://go.dev/dl/go1.18.linux-amd64.tar.gz>

# Make sure no existing installation
sudo rm -rf /usr/local/go

# Extract binaries over
sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz

# Add bin to the PATH environment variable
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.profile
source ~/.profile

# Check version
go version #go version go1.18 linux/amd64

# Clean up
rm go1.18.linux-amd64.tar.gz

Install Sei Binary

git clone <https://github.com/sei-protocol/sei-chain.git>
cd sei-chain
git checkout 1.0.6beta
make install

# Verify version
seid version --long | head

name: sei
server_name: <appd>
version: 1.0.6beta
commit: e3958ff9cc3fa00a12b0c32cf55b635baa0d49bd

# Init data directories
seid init "Your Moniker" --chain-id atlantic-1 -o

# Obtain the genesis file for atlantic-1:
curl <https://raw.githubusercontent.com/sei-protocol/testnet/master/sei-incentivized-testnet/genesis.json> > ~/.sei/config/genesis.json

# Obtain the address book for sei-testnet-1
curl <https://raw.githubusercontent.com/sei-protocol/testnet/master/sei-incentivized-testnet/addrbook.json> > ~/.sei/config/addrbook.json

Create a key

seid keys add "Your Key Name"

Install Cosmovisor

git clone <https://github.com/cosmos/cosmos-sdk>
cd cosmos-sdk
make cosmovisor
cp cosmovisor/cosmovisor /home/ubuntu/go/bin/cosmovisor
cd $HOME
DAEMON_HOME=/home/ubuntu/.sei
mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin
cp /home/ubuntu/go/bin/seid $DAEMON_HOME/cosmovisor/genesis/bin

System Service

sudo nano /etc/systemd/system/cosmovisor.service

[Unit]
Description=cosmovisor
After=network-online.target

[Service]
User=ubuntu
ExecStart=/home/ubuntu/go/bin/cosmovisor run start
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=seid"
Environment="DAEMON_HOME=/home/ubuntu/.sei"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_LOG_BUFFER_SIZE=512"

[Install]
WantedBy=multi-user.target