Skip to content

Install

Website | Twitter | Discord | Explorer


Public Endpoints | Genesis | Addrbook

https://entrypoint-test.rpc.moonbridge.team
Chain ID: entrypoint-pubtest-2 | Latest Version: v1.3.0 | Custom Port: 129
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 -y
sudo apt install curl build-essential git jq lz4 ncdu bashtop -y

Install GO

cd $HOME
version="1.21.5"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo 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_profile
source $HOME/.bash_profile

Install Cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

Download and install

cd $HOME
wget https://snapshots.moonbridge.team/testnet/entrypoint/entrypointd
chmod +x entrypointd
sudo mv entrypointd $HOME/go/bin/
entrypointd version --long | grep -e commit -e version

Config and Init node

# Set node configuration
entrypointd config chain-id entrypoint-pubtest-2
entrypointd config keyring-backend test
entrypointd config node tcp://localhost:12957
# Initialize node
entrypointd init $MONIKER --chain-id entrypoint-pubtest-2
# Download genesis and addrbook
curl -Ls https://snapshots.moonbridge.team/testnet/entrypoint/genesis.json > $HOME/.entrypoint/config/genesis.json
curl -Ls https://snapshots.moonbridge.team/testnet/entrypoint/addrbook.json > $HOME/.entrypoint/config/addrbook.json
# Set seeds and peers
SEEDS=""
PEERS=""
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.entrypoint/config/config.toml
# Setting minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.01ibc/8A138BC76D0FB2665F8937EC2BF01B9F6A714F6127221A0E155106A45E09BCC5\"|" $HOME/.entrypoint/config/app.toml
# Setting pruning
sed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.entrypoint/config/app.toml
sed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.entrypoint/config/app.toml
sed -i -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' $HOME/.entrypoint/config/app.toml
sed -i -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.entrypoint/config/app.toml
# Disable indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.entrypoint/config/config.toml
# Enable Prometheus
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.entrypoint/config/config.toml
# Setting custom ports
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:12958\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:12957\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:12960\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:12956\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):12956\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":12966\"%" $HOME/.entrypoint/config/config.toml
sed -i -e "s%:1317%:12917%g; s%:8080%:12980%g; s%:9090%:12990%g; s%:9091%:12991%g; s%:8545%:12945%g; s%:8546%:12946%g; s%:6065%:12965%g" $HOME/.entrypoint/config/app.toml

Configure Cosmovisor

mkdir -p $HOME/.entrypoint/cosmovisor/genesis/bin
mkdir -p $HOME/.entrypoint/cosmovisor/upgrades
cp $HOME/go/bin/entrypointd $HOME/.entrypoint/cosmovisor/genesis/bin/

Create service

sudo tee /etc/systemd/system/entrypointd.service > /dev/null << EOF
[Unit]
Description=Entrypoint Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_NAME=entrypointd"
Environment="DAEMON_HOME=$HOME/.entrypoint"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable entrypointd

Download latest snapshot

curl -o - -L https://snapshots.moonbridge.team/testnet/entrypoint/snapshot_latest.tar.lz4 | lz4 -dc - | tar -x -C $HOME/.entrypoint
[[ -f $HOME/.entrypoint/data/upgrade-info.json ]] && cp $HOME/.entrypoint/data/upgrade-info.json $HOME/.entrypoint/cosmovisor/genesis/upgrade-info.json

Start service and check the logs

sudo systemctl start entrypointd && sudo journalctl -u entrypointd -f --no-hostname -o cat

Create wallet

entrypointd keys add wallet

Check wallet balance

entrypointd q bank balances $(entrypointd keys show wallet -a)

Create validator

entrypointd tx staking create-validator \
--amount 1000000uentry \
--pubkey $(entrypointd 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 entrypoint-pubtest-2 \
--commission-rate 0.10 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.01ibc/8A138BC76D0FB2665F8937EC2BF01B9F6A714F6127221A0E155106A45E09BCC5 \
-y

Delete node

sudo systemctl stop entrypointd
sudo systemctl disable entrypointd
sudo rm -rf /etc/systemd/system/entrypointd.service
sudo systemctl daemon-reload
sudo rm -f $(which entrypointd)
sudo rm -rf $HOME/.entrypoint