# Integrationnet - Build a Pacaswap node

## System Requirements

To run a Metagraph Validator Node, ensure your machine meets the following minimum requirements:

* Memory (RAM):
  * Minimum: 8 GB
  * Recommended: 16 GB or more for optimal performance
* Storage:
  * At least 100 GiB of SSD storage
* CPU:
  * Minimum: 2 vCPU
  * Recommended: 4 vCPU

## Dependencies

This node runs inside a Docker container, so you’ll need the following installed on your local machine or cloud instance:

### **Docker Engine**

Ensure Docker is installed and running. Installation instructions can be found in the official documentation:

👉 [Docker Engine Install Guide](https://docs.docker.com/engine/install/)

### **Docker Compose**

Docker Compose is required to manage multi-container setups. You can install it by following this guide:

👉 [Docker Compose Install Guide](https://docs.docker.com/compose/install/)

### **Java**

Java is required to run the JARs. You can install it by following this guide:

👉 [Java Install Guide](https://www.java.com/en/download/manual.jsp)

## `.p12` File and Node ID

Before proceeding, you need to create a `.p12` file and get your Node ID so we can add you to the seed list.

**1.1 Download the required tools**

Download the following files from the latest Tessellation release:

* `cl-keytool.jar`
* `cl-wallet.jar`

🔗 You’ll find them under **Assets** here:\
👉 [Tessellation Releases on GitHub](https://github.com/Constellation-Labs/tessellation/releases)

**1.2 Set your environment variables**

```bash
export CL_KEYSTORE="my_node.p12"
export CL_KEYALIAS="my_node"
export CL_PASSWORD="your_secure_password"
```

**1.3 Generate your `.p12` file**

```bash
java -jar cl-keytool.jar generate
```

**1.4 Get your Node ID**

```bash
java -jar cl-wallet.jar show-id
```

**1.5 Share your Node ID**

Tag the team on Discord and send your Node ID so it can be added to the seed list.

> ⚠️ **Only proceed to the next step after your Node ID has been confirmed in the seed list.**

{% hint style="info" %}
Full instructions

\
👉 [Working with .p12 files](https://docs.constellationnetwork.io/metagraph-development/guides/working-with-p12-files)
{% endhint %}

## **Installation**

To install and run a Metagraph validator node, follow the steps below:

**1. Create your working directory**

```bash
mkdir my-node
cd my-node
```

**2. Create the shared-data directory with the metagraph-l0 subdirectory**

```bash
mkdir -p shared-data/metagraph-l0
```

**3. Copy your .p12 keystore file into this directory**

{% hint style="warning" %}
If you haven’t created a `.p12` file yet, follow the official guide:\
\
[Working with .p12 files](https://docs.constellationnetwork.io/metagraph-development/guides/working-with-p12-files)
{% endhint %}

```bash
cp /path/to/your/file.p12 shared-data/metagraph-l0/
```

**4. Return to the root of your  my-node directory** Ensure you’re back in my-node before the next steps:

```bash
cd my-node
```

**5. Create a docker-compose.yml file**

Use the appropriate template for your network (e.g. docker-compose.integrationnet.yml) and paste it into a new file:

```bash
nano docker-compose.yml
```

{% file src="/files/LHvI5AIM2Fk9HFVBFDrh" %}

**6. Create a .env file** Use the corresponding .env template (e.g. .env.integrationnet) and paste it into a new file:

```bash
nano .env
```

{% file src="/files/liMwlSXO7WHY1JaxTHim" %}

**7. Edit the .env file with your node’s configuration**

Make sure to update the following values:

* NODE\_IP: Your instance’s public IP
* METAGRAPH\_L0\_CL\_KEYSTORE: Full path to your .p12 file (e.g. /app/shared-data/metagraph-l0/my\_file.p12)
* METAGRAPH\_L0\_CL\_KEYALIAS: Your keystore alias (e.g. my\_file)
* METAGRAPH\_L0\_CL\_PASSWORD: Your keystore password (e.g. my\_password)

**8. Verify your folder structure**

Your my-node directory should now contain:

```bash
my-node/
├── docker-compose.yml
├── .env
└── shared-data/
    └── metagraph-l0/
        └── your_file.p12
```

**9. Start your node 🚀** Run the following command to bring your node up:

```bash
docker-compose down && docker-compose pull && docker-compose up -d && docker-compose logs -f
```

This command will:

* &#x20;Stop any running container
* &#x20;Pull the latest image
* &#x20;Start the node in detached mode
* &#x20;Stream the logs


---

# 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://docs.constellationnetwork.io/run-a-node/metagraphs/pacaswap-metagraph/integrationnet-build-a-pacaswap-node.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.
