Node Installation
Hardware requirements The following requirements are recommended for running SEDA:
6 or more physical CPU cores
At least 1TB of SSD disk storage
At least 16GB of memory (RAM)
At least 500mbps network bandwidth
Manual Installation
# Update & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install clang pkg-config libssl-dev curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
# Set Firewall
sudo apt install -y ufw
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw enable
# Install Go
cd $HOME
VER="1.23.4"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export SEDA_CHAIN_ID="seda-1"" >> $HOME/.bash_profile
echo "export SEDA_PORT="6"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
cd $HOME
git clone https://github.com/sedaprotocol/seda-chain.git
cd seda-chain
git checkout v0.1.6
make install
# Config and Init App
sedad init $MONIKER --chain-id $SEDA_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.sedad/config/genesis.json https://snapshot.syanodes.my.id/mainnets/seda/genesis.json
wget -O $HOME/.sedad/config/addrbook.json https://snapshot.syanodes.my.id/mainnets/seda/addrbook.json
#Configure Seeds and Peers
SEEDS=""
PEERS="[email protected]:46656,[email protected]:26656,[email protected]:25856,[email protected]:25856,[email protected]:44656,[email protected]:23656,[email protected]:16656,[email protected]:26656,[email protected]:26656,[email protected]:26696,[email protected]:25856,[email protected]:25856,[email protected]:3000,[email protected]:25856,[email protected]:25856,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:3000,[email protected]:20656,[email protected]:17356,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:25856,[email protected]:25856,[email protected]:26656,[email protected]:11656,[email protected]:57056,[email protected]:46656,[email protected]:26636,[email protected]:26656,[email protected]:17356,[email protected]:25856,[email protected]:56176,[email protected]:25856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:25856,[email protected]:36656,[email protected]:17356,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:25856,[email protected]:25856,[email protected]:36656,[email protected]:24656,[email protected]:17356,[email protected]:25856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:25856,[email protected]:17356"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.sedad/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"10000000000aseda\"/" $HOME/.sedad/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.sedad/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.sedad/config/config.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="19"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.sedad/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.sedad/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.sedad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.sedad/config/app.toml
# Set Custom Port
sed -i.bak -e "s%:1317%:${SEDA_PORT}317%g;
s%:8080%:${SEDA_PORT}080%g;
s%:9090%:${SEDA_PORT}090%g;
s%:9091%:${SEDA_PORT}091%g;
s%:8545%:${SEDA_PORT}545%g;
s%:8546%:${SEDA_PORT}546%g;
s%:6065%:${SEDA_PORT}065%g" $HOME/.sedad/config/app.toml
sed -i.bak -e "s%:26658%:${SEDA_PORT}658%g;
s%:26657%:${SEDA_PORT}657%g;
s%:6060%:${SEDA_PORT}060%g;
s%:26656%:${SEDA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${SEDA_PORT}656\"%;
s%:26660%:${SEDA_PORT}660%g" $HOME/.sedad/config/config.toml
sed -i \
-e 's|^chain-id *=.*|chain-id = "seda-1"|' \
-e 's|^node *=.*|node = "tcp://localhost:6657"|' \
$HOME/.sedad/config/client.toml
# Set Service File
sudo tee /etc/systemd/system/sedad.service > /dev/null <<EOF
[Unit]
Description=seda
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sedad) start --home $HOME/.sedad
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable sedad
sudo systemctl start sedad
sudo journalctl -fu sedad -o cat
Auto Installation
wget https://snapshot.syanodes.my.id/auto/mainnet/seda_auto && chmod +x seda_auto && ./seda_auto
Last updated