Sputnik network Blockchain Environment
go: go version go1.22.9 linux/amd64
name: sputnik
sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.22.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
rm go1.22.4.linux-amd64.tar.gz
nano .profile
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
source .profile
go version
sudo apt-get update
sudo apt-get upgrade
sudo apt install mc btop nano screen git make build-essential
git clone https://github.com/olimdzhon/sputnik.git
cd sputnik
make install
sputnikd init "<moniker-name>" --chain-id dvs-4.5
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.25usignal\"|" $HOME/.sputnik/config/app.toml
# To create new keypair - make sure you save the mnemonics!
sputnikd keys add <key-name>
or
# Restore existing odin wallet with mnemonic seed phrase.
# You will be prompted to enter mnemonic seed.
sputnikd keys add <key-name> --recover
or
# Add keys using ledger
sputnikd keys show <key-name> --ledger
Check your key:
# Query the keystore for your public address
sputnikd keys show <key-name> -a
sputnikd genesis add-genesis-account <key-name> 10000000usignal
# Create the gentx.
# Note, your gentx will be rejected if you use any amount greater than 1000000usignal.
# Make sure that all participants built their gentx files without typos.
sputnikd genesis gentx <key-name> 1000000usignal \
--pubkey=$(sputnikd tendermint show-validator) \
--chain-id=dvs-4.5 \
--moniker="my-moniker" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01"
# Add account addresses of all participants before generating genesis.
# (whose Gentx files you're using to generate genesis)
sputnikd genesis add-genesis-account <account-address> 1000000usignal
sputnikd genesis collect-gentxs
sudo tee /etc/systemd/system/sputnik.service > /dev/null << EOF
[Unit]
Description=Sputnik app chain daemon
After=network-online.target
[Service]
Environment="DAEMON_NAME=sputnikd"
Environment="DAEMON_HOME=${HOME}/.sputnik"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_LOG_BUFFER_SIZE=512"
Environment="UNSAFE_SKIP_BACKUP=true"
User=$USER
ExecStart=${HOME}/go/bin/sputnikd start
Restart=always
RestartSec=3
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable sputnik
sudo systemctl restart sputnik && sudo journalctl -u sputnik -f --output cat
sudo systemctl stop sputnik
sputnikd tendermint unsafe-reset-all --keep-addr-book