Skip to content

Install

Website | Twitter | Discord | Explorer | EntangleHub

Public Endpoints | Genesis | Addrbook

Chain ID: entangle_33033-1 | Latest Version: v1.0.1 | Custom Port: 156
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.22.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
git clone https://github.com/Entangle-Protocol/entangle-blockchain
cd entangle-blockchain
git checkout main
make install
entangled version --long | grep -e commit -e version

Config and Init node

# Set node configuration
entangled config chain-id entangle_33033-1
entangled config keyring-backend file
entangled config node tcp://localhost:15657
# Initialize node
entangled init $MONIKER --chain-id entangle_33033-1
# Download genesis and addrbook
curl -Ls https://snapshots.moonbridge.team/mainnet/entangle/genesis.json > $HOME/.entangled/config/genesis.json
curl -Ls https://snapshots.moonbridge.team/mainnet/entangle/addrbook.json > $HOME/.entangled/config/addrbook.json
# Set seeds and peers
SEEDS=""
PEERS=""
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.entangled/config/config.toml
# Setting minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"10aNGL\"|" $HOME/.entangled/config/app.toml
# Setting pruning
sed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.entangled/config/app.toml
sed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.entangled/config/app.toml
sed -i -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' $HOME/.entangled/config/app.toml
sed -i -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.entangled/config/app.toml
# Disable indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.entangled/config/config.toml
# Enable Prometheus
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.entangled/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:15658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:15657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:15660\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:15656\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):15656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":15666\"%" $HOME/.entangled/config/config.toml
sed -i -e "s%:1317%:15617%g; s%:8080%:15680%g; s%:9090%:15690%g; s%:9091%:15691%g; s%:8545%:15645%g; s%:8546%:15646%g; s%:6065%:15665%g" $HOME/.entangled/config/app.toml

Configure Cosmovisor

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

Create service

sudo tee /etc/systemd/system/entangled.service > /dev/null << EOF
[Unit]
Description=Entangle Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --chain-id entangle_33033-1
Restart=always
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_NAME=entangled"
Environment="DAEMON_HOME=$HOME/.entangled"
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 entangled

Download latest snapshot

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

Start service and check the logs

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

Create wallet

entangled keys add wallet

Check wallet balance

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

Create validator

entangled tx staking create-validator \
--amount 1000000000000000000aNGL \
--pubkey $(entangled 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 entangle_33033-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas 500000 \
--gas-prices 10aNGL \
-y

Delete node

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