Installation
Install Dependencies:β
sudo apt update && sudo apt upgarade -y
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip make bc -y
Install GO: (amd64 - x86)β
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.23.4.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.bash_profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.bash_profile
go version
Set variables:β
echo "export SEDA_PORT="35"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install binary:β
wget -O sedad https://github.com/sedaprotocol/seda-chain/releases/download/v1.0.0/sedad-amd64
chmod +x sedad
sudo mv sedad /usr/local/bin
sedad version
Config & init Seda:β
sedad init Node39-Guide --chain-id seda-1
sed -i "s/chain-id = .*/chain-id = \"seda-1\"/" $HOME/.sedad/config/client.toml
sed -i "s/keyring-backend = .*/keyring-backend = \"os\"/" $HOME/.sedad/config/client.toml
sed -i "s/node = .*/node = \"tcp:\/\/localhost:${SEDA_PORT}657\"/" $HOME/.sedad/config/client.toml
Custom ports:β
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
Set min gas:β
sed -i "s/minimum-gas-prices = .*/minimum-gas-prices = \"10000000000aseda\"/" $HOME/.sedad/config/app.toml
Set indexer:β
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.sedad/config/config.toml
Pruning:β
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.sedad/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.sedad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.sedad/config/app.toml
Download Genesis & addressbook:β
curl -Ls https://file.node39.top/Mainnet/Seda/genesis.json > $HOME/.sedad/config/genesis.json
curl -Ls https://file.node39.top/Mainnet/Seda/addrbook.json > $HOME/.sedad/config/addrbook.json
Peers:β
peers="[email protected]:29656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.sedad/config/config.toml
Create Service:β
sudo tee /etc/systemd/system/sedad.service > /dev/null <<EOF
[Unit]
Description=Seda Node
After=network-online.target
[Service]
User=$USER
Environment="SEDA_KEYS_ENCRYPTION_KEY=your_encryption_key_here" #v1.0.0 Mainnet
ExecStart=$(which sedad) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable sedad
Download snapshot: Here.β
Check sync:β
(False -> Done)
sedad status 2>&1 | jq .SyncInfo
Validator Public Key Registrationβ
Add the configuration below to app.toml if itβs not already present:β
[seda]
# enable-seda-signer enables the SEDA signer.
enable-seda-signer = false
# seda-key-file is the path to the SEDA key file from the node's home directory.
seda-key-file = "config/seda_keys.json"
# allow-unencrypted-seda-keys enables unencrypted use of the SEDA key file.
allow-unencrypted-seda-keys = false
Set app.toml:β
sedad config set app seda.enable-seda-signer true
sedad config set app seda.allow-unencrypted-seda-keys false
Create SEDA key:β
sedad tx pubkey add-seda-keys \
--from wallet \
--chain-id seda-1 \
--gas-prices 10000000000aseda --gas auto --gas-adjustment 2.0 \
--generate-only
*Carefully back up the value of SEDA_KEYS_ENCRYPTION_KEY, as it is the encryption key used to unlock the SEDA key file. You will then need to add SEDA_KEYS_ENCRYPTION_KEY to your systemd service file so the node can access it during startup.
Add on service:β
Environment="SEDA_KEYS_ENCRYPTION_KEY=your_encryption_key_here"
Restart nodeβ
sudo systemctl daemon-reload
sudo systemctl restart sedad
Submit the transaction:β
sedad tx pubkey add-seda-keys \
--from wallet \
--chain-id seda-1 \
--gas-prices 10000000000aseda --gas auto --gas-adjustment 2.0 \
--key-file $HOME/.sedad/config/seda_keys.json \
--key-file-custom-encryption-key
Check status:β
sedad query seda-signer-status
This is the command that ran successfully. ` signer_keys:
- index: 0 index_name: SEDA_KEY_INDEX_SECP256K1 is_proving_scheme_active: false is_synced: true public_key: 049784a09c85a69d852xxxxxxx validator_address: sedavaloper1lpv7ncf3jpal5gylusfskgr64pgmc7pfa4caum `