# Moi Technology

## Moi Testnet Incentives

System: Ubuntu 22.04 or 20.04

## Server preparation

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

sudo apt install git curl -y

sudo apt install make clang pkg-config libssl-dev build-essential -y
```

## Install Docker

```
sudo apt install curl -y && curl -sO https://nodesync.top/docker_install && chmod +x docker_install && bash docker_install
```

## Create a info:

```
docker pull sarvalabs/moipod:latest
```

```
mkdir moi && chmod +x moi
```

Download Keystore, remember password and upload to folder <mark style="color:red;">**moi**</mark> , you can find it <https://voyage.moi.technology/guardians/>

Different ways: <mark style="color:blue;">**nano moi/keystore.json**</mark> , open and copy json file download before, save it

```
your_ip="$(curl ifconfig.me)"
```

<mark style="color:red;">**IMPORTANT**</mark>

```
your_wallet_address=<your here>
```

Note: your\_wallet\_address Find  and can choose 1 in 3 on righ top: <https://voyage.moi.technology/guardians/>

<figure><img src="https://2585830168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzXvi3emVKzTi94K7StD%2Fuploads%2Fm4rnaInye8KYFov1oTl8%2Fmoi1.PNG?alt=media&#x26;token=478cf905-2e83-4582-9722-b9ec18752c88" alt=""><figcaption><p>set wallet</p></figcaption></figure>

```
your_pass_node=<your here>
```

<figure><img src="https://2585830168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzXvi3emVKzTi94K7StD%2Fuploads%2F4AewLEVlrqs3tTqImfm5%2Fmoi2.PNG?alt=media&#x26;token=2d80eb74-5f85-497f-9ffb-d2526cee5b5f" alt=""><figcaption></figcaption></figure>

```
your_nodeindex=<your here>
```

<figure><img src="https://2585830168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzXvi3emVKzTi94K7StD%2Fuploads%2FhI40YS1TFW1KUct1klrz%2Fmoi3.PNG?alt=media&#x26;token=a672dfe1-351a-487e-8e6e-016584367b17" alt=""><figcaption></figcaption></figure>

## Register the Guardian Node

```
sudo docker run --network host -it -w /data -v $(pwd):/data sarvalabs/moipod:latest register --data-dir ./moi --mnemonic-keystore-path ./moi/keystore.json --watchdog-url https://babylon-watchdog.moi.technology/add --node-password $your_pass_node --network-rpc-url https://voyage-rpc.moi.technology/babylon --wallet-address $your_wallet_address --node-index $your_nodeindex --local-rpc-url http://$your_ip:1600
```

Enter your password remember when download keystore before

## Start the Guardian Node

```
sudo docker run --network host -it -d -w /data -v $(pwd):/data sarvalabs/moipod:latest server --babylon --data-dir ./moi --log-level DEBUG --node-password $your_pass_node --clean-db true
```

<mark style="color:red;">**IMPORTANT: Please open port 1600/tcp**</mark>

## Check logs

```
cat ./moi/log/3*
```

<figure><img src="https://2585830168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzXvi3emVKzTi94K7StD%2Fuploads%2FNGGkHLP7tWm0Qb0QXHut%2Fmoi_logs.PNG?alt=media&#x26;token=928572c9-0c1d-4f93-8d86-2ea4d1952f50" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2585830168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRzXvi3emVKzTi94K7StD%2Fuploads%2FJcXfw4ts1pQsbrsfZww5%2Fmoi4.PNG?alt=media&#x26;token=55e69ef2-0ac2-477e-bd48-689cfbb0766d" alt=""><figcaption><p>syncing</p></figcaption></figure>
