Install
Website
Discord
GitHub
Explorer
Endpoints | Genesis | Addrbook
Section titled “Endpoints | Genesis | Addrbook” curl -Ls https://snapshots.moonbridge.org/mainnet/osmosis/genesis.json > $HOME/.osmosisd/config/genesis.json
curl -Ls https://snapshots.moonbridge.org/mainnet/osmosis/addrbook.json > $HOME/.osmosisd/config/addrbook.json
Chain ID: osmosis-1 Latest Version: v31.0.0 Custom Port: 153
Section titled “Chain ID: Latest Version: Custom Port: ”Specify the name of your “MONIKER” (validator) which will be visible in the explorer
Section titled “Specify the name of your “MONIKER” (validator) which will be visible in the explorer”MONIKER="YOUR_MONIKER_NAME"Update system and install tools
Section titled “Update system and install tools”sudo apt update && sudo apt upgrade -ysudo apt install curl build-essential git jq lz4 ncdu btop -yInstall GO
Section titled “Install GO”What the Script Does
Section titled “What the Script Does”cd $HOMEwget https://raw.githubusercontent.com/MoonbridgeInc/tools/refs/heads/main/go-install/go_version_install.shchmod +x go_version_install.shsudo ./go_version_install.shInstall Cosmovisor
Section titled “Install Cosmovisor”go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latestDownload and install
Section titled “Download and install”cd $HOMEgit clone https://github.com/osmosis-labs/osmosis.gitcd osmosisgit checkout v31.0.0make installosmosisd version --long | grep -e commit -e versionConfig and Init node
Section titled “Config and Init node”# Set node configurationosmosisd config set client chain-id osmosis-1osmosisd config set client keyring-backend fileosmosisd config set client node tcp://localhost:15357
# Initialize nodeosmosisd init $MONIKER --chain-id osmosis-1
# Download genesis and addrbookcurl -Ls https://snapshots.moonbridge.org/mainnet/osmosis/genesis.json > $HOME/.osmosisd/config/genesis.jsoncurl -Ls https://snapshots.moonbridge.org/mainnet/osmosis/addrbook.json > $HOME/.osmosisd/config/addrbook.json
# Set seeds and peersSEEDS=""PEERS=""sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.osmosisd/config/config.toml
# Setting minimum gas pricesed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.025uosmo\"|" $HOME/.osmosisd/config/app.toml
# Setting pruningsed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.osmosisd/config/app.tomlsed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.osmosisd/config/app.tomlsed -i -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.osmosisd/config/app.toml
# Disable indexersed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.osmosisd/config/config.toml
# Enable Prometheussed -i -e "s/prometheus = false/prometheus = true/" $HOME/.osmosisd/config/config.toml
# Setting custom portssed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:15358\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:15357\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:15360\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:15356\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):15356\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":15366\"%" $HOME/.osmosisd/config/config.tomlsed -i -e "s%:1317%:15317%g; s%:8080%:15380%g; s%:9090%:15390%g; s%:9091%:15391%g; s%:8545%:15345%g; s%:8546%:15346%g; s%:6065%:15365%g" $HOME/.osmosisd/config/app.tomlConfigure Cosmovisor
Section titled “Configure Cosmovisor”mkdir -p $HOME/.osmosisd/cosmovisor/genesis/binmkdir -p $HOME/.osmosisd/cosmovisor/upgradescp $HOME/go/bin/osmosisd $HOME/.osmosisd/cosmovisor/genesis/bin/Create service
Section titled “Create service”sudo tee /etc/systemd/system/osmosisd.service > /dev/null << EOF[Unit]Description=Osmosis NodeAfter=network-online.target
[Service]User=$USERExecStart=$(which cosmovisor) run startRestart=alwaysRestartSec=5LimitNOFILE=65535Environment="DAEMON_NAME=osmosisd"Environment="DAEMON_HOME=$HOME/.osmosisd"Environment="UNSAFE_SKIP_BACKUP=true"Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
[Install]WantedBy=multi-user.targetEOFsudo systemctl daemon-reloadsudo systemctl enable osmosisdDownload latest snapshot
Section titled “Download latest snapshot”curl -o - -L https://snapshots.moonbridge.org/mainnet/osmosis/snapshot_latest.tar.lz4 | lz4 -dc - | tar -x -C $HOME/.osmosisd[[ -f $HOME/.osmosisd/data/upgrade-info.json ]] && cp $HOME/.osmosisd/data/upgrade-info.json $HOME/.osmosisd/cosmovisor/genesis/upgrade-info.jsonStart service and check the logs
Section titled “Start service and check the logs”sudo systemctl start osmosisd && sudo journalctl -u osmosisd -f --no-hostname -o catCreate wallet
Section titled “Create wallet”osmosisd keys add walletCheck wallet balance
Section titled “Check wallet balance”osmosisd q bank balances $(osmosisd keys show wallet -a)Create validator
Section titled “Create validator”osmosisd tx staking create-validator \ --amount 1000000uosmo \ --pubkey $(osmosisd tendermint show-validator) \ --moniker "YOUR_MONIKER_NAME" \ --identity "YOUR_KEYBASE_ID" \ --details "YOUR_DETAILS" \ --website "YOUR_WEBSITE_URL" \ --security-contact "YOUR_EMAIL_ADDRESS" \ --chain-id osmosis-1 \ --commission-rate 0.05 \ --commission-max-rate 0.20 \ --commission-max-change-rate 0.05 \ --min-self-delegation 1 \ --from wallet \ --gas-adjustment 1.4 \ --gas auto \ --gas-prices 0.025uosmo \ -yDelete node
Section titled “Delete node”sudo systemctl stop osmosisdsudo systemctl disable osmosisdsudo rm -rf /etc/systemd/system/osmosisd.servicesudo systemctl daemon-reloadsudo rm -f $(which osmosisd)sudo rm -rf $HOME/.osmosisdsudo rm -rf $HOME/osmosis