Tanssi Network
Telemetry:
Explorer:
https://polkadot.js.org/apps/?rpc=wss://dancelight.tanssi-api.network#/accounts
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
Binary and config
wget https://github.com/moondance-labs/tanssi/releases/download/v0.12.0/tanssi-relay && \
wget https://github.com/moondance-labs/tanssi/releases/download/v0.12.0/tanssi-relay-execute-worker && \
wget https://github.com/moondance-labs/tanssi/releases/download/v0.12.0/tanssi-relay-prepare-worker && \
chmod +x ./tanssi-relay*
Generate node key
mkdir /var/lib/tanssi-data && mv ./tanssi-relay* /var/lib/tanssi-data
/var/lib/tanssi-data/tanssi-relay key generate-node-key --file /var/lib/tanssi-data/node-key
Config IP and NodeName
nodename="change_your_node_name_here"
Create service file
your_ip="$(curl ipv4.icanhazip.com)"
sudo tee /etc/systemd/system/tanssid.service > /dev/null <<EOF
[Unit]
Description="Tanssi systemd service"
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
Type=simple
Restart=always
RestartSec=10
SyslogIdentifier=tanssi
SyslogFacility=local7
KillSignal=SIGHUP
LimitNOFILE=100000
ExecStart=/var/lib/tanssi-data/tanssi-relay --chain=dancelight \
--base-path=/var/lib/tanssi-data/ \
--node-key-file /var/lib/tanssi-data/node-key \
--database=paritydb \
--rpc-port=9945 \
--prometheus-port=9616 \
--prometheus-external \
--name=$nodename \
--listen-addr=/ip4/0.0.0.0/tcp/30334 \
--public-addr=/ip4/$your_ip/tcp/30334 \
--state-pruning=archive \
--blocks-pruning=archive \
--rpc-cors=all \
--rpc-methods=unsafe \
--unsafe-rpc-external \
--rpc-max-connections=100 \
--telemetry-url='wss://telemetry.polkadot.io/submit/ 0' \
--validator
[Install]
WantedBy=multi-user.target
EOF
Start node
sudo systemctl daemon-reload
sudo systemctl enable tanssid
sudo systemctl restart tanssid
Check logs
sudo journalctl -u tanssid -fo cat
Generate Session Keys
curl http://127.0.0.1:9944 -H \
"Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_rotateKeys",
"params": []
}'
Delete Node
sudo systemctl stop tanssid
sudo systemctl disable tanssid
sudo systemctl daemon-reload
rm -rf /etc/systemd/system/tanssid.service
rm -rf /var/lib/tanssi-data