Tangle
END Testnet
Run the node using SystemD
1. Server Requirements
Component | Requirements |
---|---|
CPU | 8 |
Storage | 500 GB |
Ram | 16 GB |
Port | 30333 - P2P |
9933 - RPC | |
9615 - Prometh | |
OS | Ubuntu 22.04 |
2. Update & install the necessary utilities
# Change Your-name
MONIKER=<Your-name_VNBnode>
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
3. Download binaries files
mkdir -p $HOME/.tangle && cd $HOME/.tangle
wget -O tangle https://github.com/webb-tools/tangle/releases/download/v0.6.1/tangle-testnet-linux-amd64
chmod 744 tangle
mv tangle /usr/bin/
tangle --version
# **Result should be**: 0.x.x-e892e17-x86_64-linux-gnu
4. Download json file
wget -O $HOME/.tangle/tangle-standalone.json "https://raw.githubusercontent.com/webb-tools/tangle/main/chainspecs/testnet/tangle-testnet.json"
chmod 744 ~/.tangle/tangle-standalone.json
# Check json file
sha256sum ~/.tangle/tangle-standalone.json
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 $MONIKER \
--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 \
--telemetry-url "wss://telemetry.polkadot.io/submit 0" \
--no-mdns
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable tangle
5. Run service & check logs
systemctl restart tangle && journalctl -u tangle -f -o cat
6. Check the node on dashboard
7.Validator setup
# get your session key
curl -H "Content-Type: application/json" -d '{ "id": 1, "jsonrpc": "2.0", "method": "author_rotateKeys", "params": [] }' http://localhost:9933
insert session key