Install
Website
Discord
GitHub
Explorer
Endpoints | Genesis | Addrbook
curl -Ls https://snapshots.moonbridge.org/mainnet/source/genesis.json > $HOME/.source/config/genesis.json
curl -Ls https://snapshots.moonbridge.org/mainnet/source/addrbook.json > $HOME/.source/config/addrbook.json
Chain ID: source-1 Latest Version: v3.0.3 Custom Port: 155
Specify the name of your “MONIKER” (validator) which will be visible in the explorer
MONIKER="YOUR_MONIKER_NAME"
Update system and install tools
sudo apt update && sudo apt upgrade -ysudo apt install curl build-essential git jq lz4 ncdu btop -y
Install GO
cd $HOMEversion="1.23.3"wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"sudo rm -rf /usr/local/gosudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"rm "go$version.linux-amd64.tar.gz"echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profilesource $HOME/.bash_profile
Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
Download and install
cd $HOMEgit clone https://github.com/Source-Protocol-Cosmos/source.gitcd sourcegit checkout v3.0.3make installsourced version --long | grep -e commit -e version
Config and Init node
# Set node configurationsourced config chain-id source-1sourced config keyring-backend filesourced config node tcp://localhost:15557
# Initialize nodesourced init $MONIKER --chain-id source-1
# Download genesis and addrbookcurl -Ls https://snapshots.moonbridge.org/mainnet/source/genesis.json > $HOME/.source/config/genesis.jsoncurl -Ls https://snapshots.moonbridge.org/mainnet/source/addrbook.json > $HOME/.source/config/addrbook.json
# Set seeds and peersSEEDS=""PEERS=""sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.source/config/config.toml
# Setting minimum gas pricesed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.25usource\"|" $HOME/.source/config/app.toml
# Setting pruningsed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.source/config/app.tomlsed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.source/config/app.tomlsed -i -e 's|^pruning-interval *=.*|pruning-interval = "19"|' $HOME/.source/config/app.toml
# Disable indexersed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.source/config/config.toml
# Enable Prometheussed -i -e "s/prometheus = false/prometheus = true/" $HOME/.source/config/config.toml
# Setting custom portssed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:15558\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:15557\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:15560\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:15556\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):15556\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":15566\"%" $HOME/.source/config/config.tomlsed -i -e "s%:1317%:15517%g; s%:8080%:15580%g; s%:9090%:15590%g; s%:9091%:15591%g; s%:8545%:15545%g; s%:8546%:15546%g; s%:6065%:15565%g" $HOME/.source/config/app.toml
Configure Cosmovisor
mkdir -p $HOME/.source/cosmovisor/genesis/binmkdir -p $HOME/.source/cosmovisor/upgradescp $HOME/go/bin/sourced $HOME/.source/cosmovisor/genesis/bin/
Create service
sudo tee /etc/systemd/system/sourced.service > /dev/null << EOF[Unit]Description=Source NodeAfter=network-online.target
[Service]User=$USERExecStart=$(which cosmovisor) run startRestart=alwaysRestartSec=5LimitNOFILE=65535Environment="DAEMON_NAME=sourced"Environment="DAEMON_HOME=$HOME/.source"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 sourced
Download latest snapshot
curl -o - -L https://snapshots.moonbridge.org/mainnet/source/snapshot_latest.tar.lz4 | lz4 -dc - | tar -x -C $HOME/.source[[ -f $HOME/.source/data/upgrade-info.json ]] && cp $HOME/.source/data/upgrade-info.json $HOME/.source/cosmovisor/genesis/upgrade-info.json
Start service and check the logs
sudo systemctl start sourced && sudo journalctl -u sourced -f --no-hostname -o cat
Create wallet
sourced keys add wallet
Check wallet balance
sourced q bank balances $(sourced keys show wallet -a)
Create validator
sourced tx staking create-validator \ --amount 1000000usource \ --pubkey $(sourced 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 source-1 \ --commission-rate 0.10 \ --commission-max-rate 0.20 \ --commission-max-change-rate 0.01 \ --min-self-delegation 1 \ --from wallet \ --fees=50000usource \ -y
Delete node
sudo systemctl stop sourcedsudo systemctl disable sourcedsudo rm -rf /etc/systemd/system/sourced.servicesudo systemctl daemon-reloadsudo rm -f $(which sourced)sudo rm -rf $HOME/.sourcesudo rm -rf $HOME/source