Install dependencies
Update system and install build tools
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Install Go
cd $HOME
sudo rm -rf /usr/local/go
wget https://go.dev/dl/go1.21.11.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.21.11.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source ~/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
go version
which go
rm -rf go1.21.11.linux-amd64.tar.gz
Download and build binary
Clone project repository
cd $HOME
rm -rf umee
git clone https://github.com/umee-network/umee
cd umee
git checkout v6.7.0
make install
umeed version
which umeed
Or download directly binary
wget -O umeed https://snapshots.tienthuattoan.com/mainnet/umee/umeed && mv umeed $HOME/go/bin
Initialize the node
Set node configuration
umeed config chain-id umee-1
Initialize the node
umeed init you-node-name --chain-id umee-1
Download genesis and addrbook
curl -Ls https://snapshots.tienthuattoan.com/mainnet/umee/genesis.json > $HOME/.umee/config/genesis.json
curl -Ls https://snapshots.tienthuattoan.com/mainnet/umee/addrbook.json > $HOME/.umee/config/addrbook.json
Add seed
sed -i -e "s|^seeds *=.*|seeds = \"e0ad7157fae1963233441ef4902c977b8b32ba0c@umee-mainnet-rpc.tienthuattoan.com:26656\"|" $HOME/.umee/config/config.toml
Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.1uumee\"|" $HOME/.umee/config/app.toml
Update pruning and disable indexer to save disk space
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "10"|' \
$HOME/.umee/config/app.toml
sed -i 's/indexer = "kv"/indexer = "null"/g' $HOME/.umee/config/config.toml
Download Snapshot
wget -O umee_latest.tar.lz4 https://snapshots.tienthuattoan.com/mainnet/umee/umee_latest.tar.lz4 && lz4 -c -d umee_latest.tar.lz4 | tar -x -C $HOME/.umee
Create service
sudo tee /etc/systemd/system/umeed.service > /dev/null << EOF
[Unit]
Description=Umee node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which umeed) start
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start the service and check the logs
sudo systemctl daemon-reload
sudo systemctl enable umeed
sudo systemctl restart umeed
sudo journalctl -u umeed -f