# Rename the downloaded binary to a simpler name.
mv sedad-${ARCH} sedad
# mv sedad-amd64 sedad
# mv sedad-arm64 sedad
# Make the downloaded binary executable.
chmod +x sedad
# This documentation assumes that you have added the binary to $PATH as well.
# Reset the chain.
sedad tendermint unsafe-reset-all
rm -rf ~/.sedad || true
# Create your operator key.
sedad keys add <key-name>
# Initialize your node and join the network (optionally with an existing key using the recover flag).
sedad join <moniker> --network mainnet [--recover]
# Start your node.
sedad start
Run the node as a subprocess of Cosmovisor if you want automatic upgrading, which only requires you to place a new binary in the right location before an upgrade height.
Install Cosmovisor.
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
Then, add these lines to your profile (maybe .profile
, .zprofile
, or something else) to set up environment variables:
echo "# Cosmovisor Setup" >> ~/.profile
echo "export DAEMON_NAME=sedad" >> ~/.profile
echo "export DAEMON_HOME=$HOME/.sedad" >> ~/.profile
echo "export DAEMON_ALLOW_DOWNLOAD_BINARIES=false" >> ~/.profile
echo "export DAEMON_LOG_BUFFER_SIZE=512" >> ~/.profile
echo "export DAEMON_RESTART_AFTER_UPGRADE=true" >> ~/.profile
echo "export UNSAFE_SKIP_BACKUP=true" >> ~/.profile
source ~/.profile
Initialize Cosmovisor with the chain binary and start the node.
cosmovisor init sedad
cosmovisor run start
Note that for an upgrade, simply run the following command to prepare Cosmovisor with the upgrade binary before the chain reaches the upgrade height.
cosmovisor add-upgrade <upgrade-name> <upgrade-binary-file>
To start a SEDA chain node with Docker (only recommended for those familiar with the tool):