💻Installation

Officially stated requirements: 2/4/100 ubuntu 22.04

Server preparation

apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev libgmp3-dev tar clang bsdmainutils ncdu unzip llvm libudev-dev make protobuf-compiler -y

Installing Ubuntu 22.04

Download the binary file

mkdir -p $HOME/.tangle && cd $HOME/.tangle

wget -O tangle https://github.com/webb-tools/tangle/releases/download/v5.0.0/tangle-standalone-linux-amd64
chmod 744 tangle
mv tangle /usr/bin/
tangle --version
# 0.5.0-e892e17-x86_64-linux-gnu

Download json

wget -O $HOME/.tangle/tangle-standalone.json "https://raw.githubusercontent.com/webb-tools/tangle/main/chainspecs/testnet/tangle-standalone.json"
chmod 744 ~/.tangle/tangle-standalone.json
# Проверим json
sha256sum ~/.tangle/tangle-standalone.json
# 17f4e994b5724242a2299bffeb12c7945ab569577c8f730686e0497e7ce160e4

Create a service file

We use the --auto-insert-keys switch to have the node automatically generate keys. If you want to create the necessary keys yourself, then go to this section

yourname=<name>
tee /etc/systemd/system/tangle.service > /dev/null << EOF
[Unit]
Description=Tangle Validator Node
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=/usr/bin/tangle \
  --base-path $HOME/.tangle/data/ \
  --name '$yourname' \
  --chain $HOME/.tangle/tangle-standalone.json \
  --node-key-file "$HOME/.tangle/node-key" \
  --port 30333 \
  --rpc-port 9933 \
  --prometheus-port 9615 \
  --auto-insert-keys \
  --validator \
  --pruning archive \
  --telemetry-url "wss://telemetry.polkadot.io/submit 0" \
  --no-mdns
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable tangle
systemctl restart tangle && journalctl -u tangle -f -o cat

Now our node has started to synchronize. We can check our node in telemetry

Validator setup

After the node has synchronized, we pull out the key from our node by entering the command

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

If you get a similar result, then everything is great {"jsonrpc":"2.0","result":"0xa0very0long0hex0string","id":1} - copy the key (in bold) we will need it in the near future

IMPORTANT - save the keys located in $HOME/.tangle/node-key and $HOME/.tangle/data/chains/tangle-standalone-testnet/keystore/

  • Go to the website and first create a stash wallet

  • For stash we configure Set on-chain Identity for identification

  • We create a validator. To do this, select Network - Staking - Accounts - Validator

Next, insert our key received from the validator node, select the commission percentage

As soon as a place among the validators becomes available, you will appear in the Staking Overview tab, but for now you can find yourself on the Waiting tab

Last updated