Mainnet
Arkeo
- Chain ID
- Version
- Go
For Ubuntu 22.04 or later. The node listens on ports starting with your port prefix (e.g. 26657 becomes 17657), so several nodes can share a server.
01Install tools
sudo apt update && sudo apt upgrade -y sudo apt install -y curl git wget jq make gcc build-essential lz4 zstd tmux htop unzip02Install Go
cd $HOME VER="<go-version>" 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 $HOME/.bash_profile ] && touch $HOME/.bash_profile echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile source $HOME/.bash_profile mkdir -p $HOME/go/bin go version03Build the binary
cd $HOME rm -rf arkeo git clone https://github.com/arkeonetwork/arkeo.git arkeo cd arkeo git checkout <version> make install arkeod version --long | grep -E '^(version|commit):'04Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest DAEMON_HOME=$HOME/.arkeo DAEMON_NAME=arkeod cosmovisor init $HOME/go/bin/arkeod05Create the service
sudo tee /etc/systemd/system/arkeod.service > /dev/null << EOF [Unit] Description=Arkeo node After=network-online.target [Service] User=$USER ExecStart=$(which cosmovisor) run start WorkingDirectory=$HOME/.arkeo Restart=on-failure RestartSec=10 LimitNOFILE=65535 Environment="DAEMON_HOME=$HOME/.arkeo" Environment="DAEMON_NAME=arkeod" Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true" Environment="DAEMON_RESTART_AFTER_UPGRADE=true" Environment="UNSAFE_SKIP_BACKUP=true" Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.arkeo/cosmovisor/current/bin" [Install] WantedBy=multi-user.target EOF sudo systemctl daemon-reload sudo systemctl enable arkeod06Set variables
echo 'export WALLET="wallet"' >> $HOME/.bash_profile echo 'export MONIKER="Your-Moniker"' >> $HOME/.bash_profile echo 'export ARKEO_CHAIN_ID="<chain-id>"' >> $HOME/.bash_profile echo 'export ARKEO_PORT="17"' >> $HOME/.bash_profile source $HOME/.bash_profile07Initialize the node
arkeod init "$MONIKER" --chain-id $ARKEO_CHAIN_ID --home $HOME/.arkeo arkeod config set client chain-id $ARKEO_CHAIN_ID arkeod config set client keyring-backend os arkeod config set client node tcp://localhost:$ARKEO_PORT65708Custom ports
sed -i.bak -e "s%:1317%:$ARKEO_PORT317%g; s%:8080%:$ARKEO_PORT080%g; s%:9090%:$ARKEO_PORT090%g; s%:9091%:$ARKEO_PORT091%g; s%:8545%:$ARKEO_PORT545%g; s%:8546%:$ARKEO_PORT546%g" $HOME/.arkeo/config/app.toml sed -i.bak -e "s%:26658%:$ARKEO_PORT658%g; s%:26657%:$ARKEO_PORT657%g; s%:6060%:$ARKEO_PORT060%g; s%:26656%:$ARKEO_PORT656%g; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):$ARKEO_PORT656\"%; s%:26660%:$ARKEO_PORT660%g" $HOME/.arkeo/config/config.toml09Genesis and addrbook
curl -Ls https://arkeo-mainnet-services.luckystar.asia/arkeo/genesis.json > $HOME/.arkeo/config/genesis.json curl -Ls https://arkeo-mainnet-services.luckystar.asia/arkeo/addrbook.json > $HOME/.arkeo/config/addrbook.json10Minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.001uarkeo\"|" $HOME/.arkeo/config/app.toml11Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.arkeo/config/app.toml sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.arkeo/config/app.toml sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"19\"/" $HOME/.arkeo/config/app.toml12Disable the indexer
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.arkeo/config/config.toml13Download the snapshot
curl -L https://arkeo-mainnet-services.luckystar.asia/arkeo/arkeo-main-v1_latest.tar.lz4 | lz4 -dc | tar -xf - -C $HOME/.arkeo/data14Start the node
sudo systemctl restart arkeod && sudo journalctl -fu arkeod -o cat15Check sync
curl -s localhost:$ARKEO_PORT657/status | jq .result.sync_info