# Chasm Node Setup

<figure><img src="https://1882782965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJKcLF887TYMWzFb2yWrk%2Fuploads%2FARTDoQJkZW8OOfk5nqKo%2F1500x500.jpg?alt=media&#x26;token=cf17ebe9-3d26-4490-a23d-afb45587e442" alt=""><figcaption></figcaption></figure>

Contabo : <https://bit.ly/contabourl>\
InterServer : <https://bit.ly/interserverurl>\
Digital Ocean : <https://bit.ly/4cKNFco>

#### Listened Ports :&#x20;

<figure><img src="https://1882782965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJKcLF887TYMWzFb2yWrk%2Fuploads%2FElPgJr46haYzlHjwO9iz%2Fimage.png?alt=media&#x26;token=de223b64-8734-486a-ab3a-3e426bac84f3" alt=""><figcaption></figcaption></figure>

### Server Requirement :&#x20;

* Operating System: Ubuntu 22.04
* Min Requirement: 1 vCPU, 1GB RAM / 20GB Disk, Static IP
* Suggested Requirement: 2 vCPU, 4GB RAM / 50GB SSD, Static IP

### Update :&#x20;

```
sudo apt-get update && sudo apt-get upgrade -y
```

### Docker : Via ( <https://docs.docker.com/engine/install/ubuntu/> )

```
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 docker run hello-world
```

### Mint :&#x20;

We need MNT Token for mint transaction. 0.20 Cent MNT : 0.35 MNT\
MNT : \
BYBIT : Zero Fee But Min Withdraw 10 MNT\
BINGX : Fee 11 MNT\
UPBIT : idk\
KRAKEN : idk\
GATEIO : idk\
KUCOIN : Min withdraw 2 Sing - Fee : 0.60 MNT UP : <https://bit.ly/3zP5zfv>\
Mint : <https://scout.chasm.net/private-mint>

### We need accounts from 3 platforms :&#x20;

#### Groq : <https://console.groq.com/keys>

#### OpenRouter : <https://openrouter.ai/settings/keys>

#### OpenAI : <https://platform.openai.com/api-keys>

```
nano .env
```

### Edit :&#x20;

```
PORT=3001
LOGGER_LEVEL=debug

# Chasm
ORCHESTRATOR_URL=https://orchestrator.chasm.net
SCOUT_NAME=
SCOUT_UID=
WEBHOOK_API_KEY=
# Scout Webhook Url, update based on your server's IP and Port
# e.g. http://123.123.123.123:3001/
WEBHOOK_URL=

# Chosen Provider (groq, openai)
PROVIDERS=groq
MODEL=gemma2-9b-it
GROQ_API_KEY=

# Optional
OPENROUTER_API_KEY=
OPENAI_API_KEY=
```

Scout Name : Your Node Name \
Scout Cash ID : \
WebHook IP : \
Webhook URL: [http://your-server-ıp:3001/](http://xn--ip_adresiniz-u4gc:3001/)\
Groq API : \
Openrouter API : \
OPENAI :&#x20;

CTRL X Y ENTER.

### Port :&#x20;

```
ufw allow 3001
```

### 3 - 2 - 1 Start !

```
docker pull johnsonchasm/chasm-scout .
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout johnsonchasm/chasm-scout

source ./.env
curl -X POST \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer $WEBHOOK_API_KEY" \
     -d '{"body":"{\"model\":\"gemma-7b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
     $WEBHOOK_URL
```

### For Result :&#x20;

```
curl localhost:3001
```

Result : OK

#### If the command does not work, click on the link in the output of this command and look at the top left.

```
docker logs scout
```

#### You'll see yourself at the end of the list :

<https://scout.chasm.net/leaderboard>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://services.rpcdot.com/chasm/chasm-node-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
