Muon Protocol
Minimum hardware requirement
4 Cores, 8G Ram, 160G SSD, Ubuntu 22.04
Server preparation
sudo apt update && sudo apt upgrade -y
sudo apt install make curl git wget -y
sudo apt install htop tmux build-essential jq make lz4 gcc unzip -y
Install Docker
docker --version || (curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh)
Install Muon Node
curl -o docker-compose.yml https://raw.githubusercontent.com/muon-protocol/muon-node-js/pion/docker-compose-pull.yml
docker compose pull
docker compose up -d
Wait for a minute and then run the next command and see the result.
curl http://localhost:8012/status
The result should look like this and means your node is running properly. (It is not added to the network yet.)
{"address":"0x22E25482F7B27b8765FE93F4ac0Cb79a0e8cB3ef","peerId":"QmVZrfc47AQQoPGjbWAmd1wQv9BtGYpFQ67JnbFmmHxAWN","networkingPort":"9012","node":{"addedToNetwork":false,...}}
You need this address
and peerID
later when you add the node to the network. https://app.muon.net
Backing up & Restoring a Node
Backup
docker exec -it muon-node ./node_modules/.bin/ts-node ./src/cmd/index.ts keys backup > backup.json
Restore
docker exec -it muon-node ./node_modules/.bin/ts-node ./src/cmd/index.ts keys restore "$(cat backup.json)"
docker restart muon-node
If the restoration process is successful, querying the status of the node from the following link will return the address
and peerId
of the backed up node.
http://<server-ip>:8012/status