Install
Website
Discord
GitHub
Telemetry
dApp
Update system and install tools
Section titled “Update system and install tools”sudo apt update && sudo apt upgrade -ysudo apt install curl wget build-essential git jq tar pkg-config libssl-dev liblz4-tool ncdu btop clang llvm libudev-dev make protobuf-compiler -y
Create a directory and download a binary file
Section titled “Create a directory and download a binary file”mkdir -p $HOME/.tanglecd $HOME/.tanglewget -O tangle https://github.com/tangle-network/tangle/releases/download/v1.2.5/tangle-default-linux-amd64chmod +x tanglesudo mv tangle /usr/bin/tangle --version
Generate Keys
Section titled “Generate Keys”Account Keys
tangle key insert --base-path $HOME/.tangle/data/ \--chain tangle-mainnet \--scheme Sr25519 \--suri "12-MNEMONIC-PHARSE" \--key-type acco
Babe Keys
tangle key insert --base-path $HOME/.tangle/data/ \--chain tangle-mainnet \--scheme Sr25519 \--suri "12-MNEMONIC-PHARSE" \--key-type babe
Im-online Keys - these keys are optional
tangle key insert --base-path $HOME/.tangle/data/ \--chain tangle-mainnet \--scheme Sr25519 \--suri "12-MNEMONIC-PHARSE" \--key-type imon
Role Keys
tangle key insert --base-path $HOME/.tangle/data/ \--chain tangle-mainnet \--scheme Ecdsa \--suri "12-MNEMONIC-PHARSE" \--key-type role
Grandpa Keys
tangle key insert --base-path $HOME/.tangle/data/ \--chain tangle-mainnet \--scheme Ed25519 \--suri "12-MNEMONIC-PHARSE" \--key-type gran
Node key
tangle key generate-node-key \--file $HOME/.tangle/node-key
Create configuration file
Section titled “Create configuration file”Specify the name of your “MONIKER” (validator) which will be visible in the explorer
Section titled “Specify the name of your “MONIKER” (validator) which will be visible in the explorer”MONIKER="YOUR_MONIKER_NAME"
sudo tee /etc/systemd/system/tangle.service > /dev/null << EOF[Unit]Description=Tangle NodeAfter=network-online.targetStartLimitIntervalSec=0
[Service]User=$USERRestart=alwaysRestartSec=3LimitNOFILE=65535ExecStart=/usr/bin/tangle \ --base-path $HOME/.tangle/data/ \ --name $MONIKER \ --chain tangle-mainnet \ --node-key-file "$HOME/.tangle/node-key" \ --port 30333 \ --rpc-port 9933 \ --prometheus-port 9615 \ --validator \ --no-mdns \ --pruning archive \ --telemetry-url "wss://telemetry.polkadot.io/submit/ 1"
[Install]WantedBy=multi-user.targetEOFsudo systemctl daemon-reloadsudo systemctl enable tangle
Start service and check the logs
Section titled “Start service and check the logs”sudo systemctl start tangle && sudo journalctl -u tangle -f -o cat
Session Keys
Section titled “Session Keys”curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
Delete node
Section titled “Delete node”sudo systemctl stop tanglesudo systemctl disable tanglesudo rm -rf /etc/systemd/system/tangle.servicesudo systemctl daemon-reloadrm /usr/bin/tanglerm -rf $HOME/.tangle