Mainnet

Seda

Installation Guide
Node CLI
Public Endpoint
State Sync
Snapshot
Custom Explorers
Decentralization Maps
Installation Guide
Installation Guide
Node CLI
Public Endpoint
State Sync
Snapshot
Custom Explorers
Decentralization Maps

How To Install Full Node Seda Mainnet

Setting up vars

Your Nodename (validator) that will shows in explorer

NODENAME=<Your_Nodename_Moniker>

Save variables to system

echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
    echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export SEDA_CHAIN_ID=seda-1" >> $HOME/.bash_profile
source $HOME/.bash_profile

Update packages

sudo apt update && sudo apt upgrade -y

Install dependencies

sudo apt install curl build-essential git wget jq make gcc tmux net-tools ccze -y

Install go

if ! [ -x "$(command -v go)" ]; then
  ver="1.22.4"
  cd $HOME
  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"
  echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
  source ~/.bash_profile
fi

Download and build binaries

cd $HOME
rm -rf seda-chain
git clone https://github.com/sedaprotocol/seda-chain.git
cd seda-chain
git checkout v0.1.1
make install

Init app

sedad init $NODENAME --chain-id $SEDA_CHAIN_ID

Download configuration

cd $HOME
wget -O $HOME/.sedad/config/genesis.json https://snap2.konsortech.xyz/seda/genesis.json
wget -O $HOME/.sedad/config/addrbook.json https://snap2.konsortech.xyz/seda/addrbook.json

Disable indexing

indexer="null"
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.sedad/config/config.toml

Config pruning

sed -i 's|pruning = "default"|pruning = "custom"|g' $HOME/.sedad/config/app.toml
sed -i 's|pruning-keep-recent = "0"|pruning-keep-recent = "100"|g' $HOME/.sedad/config/app.toml
sed -i 's|pruning-interval = "0"|pruning-interval = "19"|g' $HOME/.sedad/config/app.toml

Set minimum gas price

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "10000000000aseda"|g' $HOME/.sedad/config/app.toml

Create service

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

Register and start service

sudo systemctl daemon-reload
sudo systemctl enable sedad
sudo systemctl restart sedad && sudo journalctl -u sedad -f -o cat

Guide for Validator CLI

Create wallet

To create new wallet you can use command below. Don’t forget to save the mnemonic

sedad keys add $WALLET

To recover your wallet using seed phrase

sedad keys add $WALLET --recover

Show your wallet list

sedad keys list

Save wallet info

Add wallet and validator address into variables

SEDA_WALLET_ADDRESS=$(sedad keys show $WALLET -a)
SEDA_VALOPER_ADDRESS=$(sedad keys show $WALLET --bech val -a)
echo 'export SEDA_WALLET_ADDRESS='${SEDA_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export SEDA_VALOPER_ADDRESS='${SEDA_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile

Fund your wallet

buy some $SEDA on osmosis zone

Create validator

check your wallet balance:

sedad query bank balances $SEDA_WALLET_ADDRESS

To create your validator run command below

sedad comet show-validator

The output will be similar to this (with a different key):

{"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="}

Then, create a file named validator.json with the following content:

{    
    "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="},
    "amount": "1000000000000000000aseda",
    "moniker": "your-node-moniker",
    "identity": "keybase mainnet validator",
    "website": "optional website for your validator",
    "security": "optional security contact for your validator",
    "details": "optional details for your validator",
    "commission-rate": "0.1",
    "commission-max-rate": "0.2",
    "commission-max-change-rate": "0.01",
    "min-self-delegation": "1"
}

Check your validator key

[[ $(sedad q staking validator $SEDA_VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(sedad status | jq -r .validator_info.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"

Get list of validators

sedad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl

Usefull commands

Service management

Check logs

journalctl -fu sedad -o cat

Start service

sudo systemctl start sedad

Stop service

sudo systemctl stop sedad

Restart service

sudo systemctl restart sedad

Node info

Synchronization info

sedad status 2>&1 | jq .sync_info

Validator info

sedad status 2>&1 | jq .validator_info

Node info

sedad status 2>&1 | jq .node_info

Show node id

sedad tendermint show-node-id

Wallet operations

List of wallets

sedad keys list

Recover wallet

sedad keys add $WALLET --recover

Delete wallet

sedad keys delete $WALLET

Get wallet balance

sedad query bank balances $SEDA_WALLET_ADDRESS

Transfer funds

sedad tx bank send $SEDA_WALLET_ADDRESS <TO_SEDA_WALLET_ADDRESS> 10000000000aseda

Voting

sedad tx gov vote 1 yes --from $WALLET --chain-id=$SEDA_CHAIN_ID

Staking, Delegation and Rewards

Delegate stake

sedad tx staking delegate $SEDA_VALOPER_ADDRESS 10000000000aseda --from=$WALLET --chain-id=$SEDA_CHAIN_ID --gas=auto

Redelegate stake from validator to another validator

sedad tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000000aseda --from=$WALLET --chain-id=$SEDA_CHAIN_ID --gas=auto

Withdraw all rewards

sedad tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$SEDA_CHAIN_ID --gas=auto

Withdraw rewards with commision

sedad tx distribution withdraw-rewards $SEDA_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$SEDA_CHAIN_ID

Validator management

Edit validator

sedad tx staking edit-validator \
  --moniker=$NODENAME \
  --identity=<your_keybase_id> \
  --website="<your_website>" \
  --details="<your_validator_description>" \
  --chain-id=$SEDA_CHAIN_ID \
  --from=$WALLET

Unjail validator

sedad tx slashing unjail \
  --broadcast-mode=block \
  --from=$WALLET \
  --chain-id=$SEDA_CHAIN_ID \
  --gas=auto

Public Endpoints

RPC

https://mainnet-seda-rpc.konsortech.xyz

API

https://mainnet-seda-api.konsortech.xyz

gRPC

mainnet-seda.konsortech.xyz:20090

Persistence Peers

9eb343010b328fab1f955f5e18f62032a23afa50@mainnet-seda.konsortech.xyz:20656

Seeds

38b8f469c972e533f16648bd4cf395e839c8b8d8@mainnet-seed.konsortech.xyz:20165

Mirroring Genesis

https://snap2.konsortech.xyz/seda/genesis.json

Address Book

https://snap2.konsortech.xyz/seda/addrbook.json

State Sync

sudo systemctl stop sedad

cp $HOME/.sedad/data/priv_validator_state.json $HOME/.sedad/priv_validator_state.json.backup
sedad tendermint unsafe-reset-all --home $HOME/.sedad --keep-addr-book

SNAP_RPC="https://mainnet-seda-rpc.konsortech.xyz:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

peers="9eb343010b328fab1f955f5e18f62032a23afa50@mainnet-seda.konsortech.xyz:20656"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$peers'"|' $HOME/.sedad/config/config.toml

sed -i -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/.sedad/config/config.toml

mv $HOME/.sedad/priv_validator_state.json.backup $HOME/.sedad/data/priv_validator_state.json

sudo systemctl restart sedad
sudo journalctl -u sedad -f --no-hostname -o cat

Snapshot

sudo systemctl stop sedad
cp $HOME/.sedad/data/priv_validator_state.json $HOME/.sedad/priv_validator_state.json.backup
rm -rf $HOME/.sedad/data

SNAP_NAME=$(curl -s https://snap1.konsortech.xyz/seda/ | egrep -o ">seda-snapshot.*\.tar.lz4" | tr -d ">")
curl https://snap2.konsortech.xyz/seda/${SNAP_NAME} | lz4 -dc - | tar -xf - -C $HOME/.sedad
mv $HOME/.sedad/priv_validator_state.json.backup $HOME/.sedad/data/priv_validator_state.json

sudo systemctl restart sedad && journalctl -u sedad -f --no-hostname -o cat
Embed Iframe

Seda Mainnet Decentralization Maps