Skip to content

Andrew96bit/Chasm-Network-Node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Project Information

Node Info

  • Need VPS, Requirements are mentioned below, You can't run this node on Gitpod/Github Codespace
  • You can buy VPS from PQ Hosting/Contabo/ OVHCloud
  • This node is Incentivised

Min Requirements

Requirement Details
Operating System Linux (linux/amd64, linux/arm64)
vCPU 1
RAM 1GB
Disk Space 20GB
IP Address Static IP

Recommended Server Requirements

Requirement Details
Operating System Ubuntu (20.04 LTS onwards)
vCPU 2
RAM 4GB
Disk Space 50GB SSD
IP Address Static IP

Prerequisites

  • Visit : https://console.groq.com/keys (If it is not working in default, try it on Incognito tab)

  • Copy the API key after signing in

  • Save it somewhere for now

  • Now visit : https://scout.chasm.net/private-mint

  • Mint this with 0.025 $MNT Gas fee

  • After minting, click on _mint(scout) button

  • Copy the value of SCOUT_UID and WEBHOOK_API_KEY

  • Save it somewhere for now

  • Now, Go to : https://dashboard.ngrok.com/signup

  • Go to Your Authtoken section

  • Click on Show Authtoken button in the corner, then copy the command and save it somewhere else for now


Installation

sudo apt update && sudo apt upgrade -y
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt install screen -y
 curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
  • Now paste the command, you copied earlier from ngrok website (example : ngrok config add-authtoken yourauthtoken)
screen ngrok http 3001
  • Go to forwarding section and copy the first URL and save it somewhere (It will look like https://1bXX.XX.XXX.XXX.ngrok-free.app)
  • Press Ctrl + A + D to detach from screen session
nano .env
  • Copy this format and paste the required value there, you copied earlier from different websites
PORT=3001
LOGGER_LEVEL=debug

ORCHESTRATOR_URL=https://orchestrator.chasm.net
SCOUT_NAME=ZunXBT
SCOUT_UID=PASTE UID
WEBHOOK_API_KEY=PASTE API KEY
WEBHOOK_URL=PASTE NGROK FREE APP URL LINK HERE
PROVIDERS=groq
MODEL=gemma2-9b-it
GROQ_API_KEY=PASTE GROK API KEY HERE
  • Save this file using Ctrl + X then Y and then press Enter
ufw allow 3001
docker pull chasmtech/chasm-scout:latest
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout chasmtech/chasm-scout
docker logs scout
curl localhost:3001
source ./.env
curl -X POST \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer $WEBHOOK_API_KEY" \
     -d '{"body":"{\"model\":\"gemma2-9b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
     $WEBHOOK_URL
  • Done !!

Node Status

  • You can now check your node status here : Visit
  • If you see Yellow or Green, it means your node is working properly, also your yellow dot will be turned into green dot after 1 or 2 hrs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published