⚙️ Installation

🛠️ Hardware Requirements

Node Type
CPU
RAM
Storage

Full (Minimum)

16v CPU

16 GB

250 GB SSD

Full (Recommended)

16v CPU

32 GB

1 TB SSD

Additional requirements

Chain ID
Version tag
Binary Name
Binary Home

seda-1

v0.1.1

sedad

$HOME/.sedad

⚡ Automatic installation

bash <(curl -s https://raw.githubusercontent.com/UnityNodes/scripts/main/seda/install-seda.sh)

📝 Manual installation

1️⃣ Installation packeges and dependencies

# Install dependencies for building from source
sudo apt update
sudo apt install -y lz4 jq make git gcc build-essential curl chrony unzip gzip snapd tmux bc

# Install Go
sudo rm -rf /usr/local/go
curl -L https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
source .bash_profile

2️⃣ Install node

Replace "NODE_MONIKER" with your name moniker

# Clone project repository
cd $HOME
rm -rf seda-chain
git clone https://github.com/sedaprotocol/seda-chain
cd seda-chain
git checkout v0.1.1

# Build binary
make install

# Set node CLI configuration
sedad config set client chain-id seda-1
sedad config set client keyring-backend file
sedad config set client node tcp://localhost:25857
source $HOME/.bash_profile

# Initialize the node
sedad init "NODE_MONIKER" --chain-id seda-1

# Download addrbook,genesis files
curl -L https://snapshots-mainnet.unitynodes.com/seda-mainnet/genesis.json > $HOME/.sedad/config/genesis.json
curl -Ls https://snapshots-mainnet.unitynodes.com/seda-mainnet/addrbook.json > $HOME/.sedad/config/addrbook.json

# Set seeds
sed -i -e 's|^seeds *=.*|seeds = "31f54fbcf445a9d9286426be59a17a811dd63f84@18.133.231.208:26656,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:25856,cec848e7d4c5a7ae305b27cda133d213435c110f@seed-seda.ibs.team:16679,400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@seda.rpc.kjnodes.com:17359,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:25856,cec848e7d4c5a7ae305b27cda133d213435c110f@seed-seda.ibs.team:16679,ebc272824924ea1a27ea3183dd0b9ba713494f83@seda-mainnet-seed.autostake.com:26866,c28827cb96c14c905b127b92065a3fb4cd77d7f6@seeds.whispernode.com:25856,b85358e035343a3b15e77e1102857dcdaf70053b@seeds.bluestake.net:24656,31f54fbcf445a9d9286426be59a17a811dd63f84@18.133.231.208:26656"|' $HOME/.sedad/config/config.toml

# Set minimum gas price
sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "10000000000aseda"|' $HOME/.sedad/config/app.toml

# Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.sedad/config/app.toml

#Change port
sed -i.bak -e "s%:1317%:2317%g; 
s%:8080%:2380%g;
s%:9090%:2390%g;
s%:9091%:2391%g;
s%:8545%:2345%g;
s%:8546%:2346%g;
s%:6065%:2365%g" $HOME/.sedad/config/app.toml	
sed -i.bak -e "s%:26658%:23658%g;
s%:26657%:23657%g;
s%:6060%:2360%g;
s%tcp://0.0.0.0:26656%tcp://0.0.0.0:23656%g;
s%:26660%:23660%g" $HOME/.sedad/config/config.toml
sed -i.bak -e "s%:26657%:23657%g" $HOME/.sedad/config/client.toml

# Download latest chain data snapshot
curl https://snapshots-mainnet.unitynodes.com/seda-mainnet/seda-mainnet-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.sedad

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

sudo systemctl daemon-reload
sudo systemctl enable sedad.service


# Start the service and check the logs
sudo systemctl start sedad.service
sudo journalctl -u sedad.service -f -o cat

📝 Create Validator

1️⃣ Create wallet

sedad keys add wallet

Save all information after entering the command, without this you will not be able to restore data to the wallet. SAVE SEED PHRASE (12 words).

2️⃣ Buy tokens to start a node on one of the CEX / DEX exchanges

https://www.mexc.com/ https://www.digifinex.com/

After that, copy your newly created wallet from the terminal and send the purchased tokens to the SEDA network

3️⃣ View your wallet balance

sedad keys q bank balances "address"

if the balance is displayed - continue further

4️⃣ View the sync status of your node

sedad status | jq | grep "catching_up"

If "true" - not synchronized // "false" - synchronized

5️⃣ Create validator

sedad tx staking create-validator \
--amount=1000000aseda \
--pubkey=$(sedad tendermint show-validator) \
--moniker "Alex" \ #Validator name, displayed in explorers.
--identity "" \ #Use your KeyBase ID. If you don't have one, leave it empty.
--website "mywebsite.com" \ #Your website is available, or leave the field blank
--details "A reliable validator of your network" \ #Any details about your validator.
--chain-id=seda-1 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=wallet \ #or your wallet name
--gas-prices=10000000000aseda \
--gas-adjustment=1.5 \
--gas=auto \
-y 

After entering the command, you will receive hash transactions, check the status in the explorer

6️⃣ Save priv_validator_key.json


cat $HOME/.sedad/config/priv_validator_key.json
SAVE YOUR PRIVATE KEY AFTER ENTERING THE COMMAND

Last updated