For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Your journey as a node runner starts here. For recommendations for system setup, please visit Setup & Recommendations.

This guide assumes an x86 server running Ubuntu 26.06. Canopy also runs on ARM servers and other distributions. You may need to adapt the commands for your system.

0. Prerequisites

Install necessary packages

Install Docker + Docker Compose
sudo apt update
sudo apt install -y ca-certificates curl gnupg lsb-release

# Add Docker’s official GPG key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
  sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

# Add Docker repo
echo \
  "deb [arch=$(dpkg --print-architecture) \
  signed-by=/etc/apt/keyrings/docker.gpg] \
  https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install Docker Engine + CLI + Compose plugin
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Make

sudo apt install -y make

Git

sudo apt install -y git

Configure your DNS

A public domain is required only for an active validator. If you are running a full node without public access, skip this section and the remaining DNS steps thorough the guide.

Your validator needs a domain that points to your server's public IP address.

Create these two A records in your DNS provider:

The first record points your root domain to the server. The wildcard record points every subdomain to the same server. Some DNS providers show the root domain as @.

Domain propagation can take some time. Check it with the following command:

Ensure you've read and satisfied Setup & Recommendations before following the guide!

1. Clone the canopy node repo

The Canopy node repository is the official source for setting up and operating validator infrastructure.

It contains the configuration, scripts, and monitoring tools required to participate in the Canopy network.

Migrate an existing node (optional)

If you are migrating a validator from the deprecated deployments repository, copy validator_key.json and keystore.json into the new node configuration.

Otherwise, if you're migrating from another node repository. Copy the files from the same config path

you can also copy the .env from the node repository to be migrated to keep the same configuration

After copying these files, skip step 2. Continue with step 3 to verify the environment variables match the copied keys.

2. Generate a new private key

Run make gen-key, then enter a password and key name when prompted. The validator key is saved to /node/config/validator_key.json and the encrypted wallet key is saved to /node/config/keystore.json.

3. Configure environment variables

Copy the provided .env.example file into a new .env file.

Set the following .env fields to their required values:

  • DOMAIN: Your validator's public domain. Configure it as a wildcard domain to serve each service. For example, use example.com or canopy.example.com. Each value generates these endpoints:

    • example.com

      • example.com: validator connection domain, used when staking

      • wallet.example.com : Wallet URL

      • explorer.example.com : Explorer URL

    • canopy.example.com

      • canopy.example.com : validator connection domain, used when staking

      • wallet.canopy.example.com : Wallet URL

      • explorer.canopy.example.com : Explorer URL

  • AUTH_USER: The basic-auth username for Wallet, Explorer, and Loki on the monitoring stack.

  • AUTH_PASSWORD: The basic-auth password for Wallet, Explorer, and Loki on the monitoring stack. Generate it with make hash-password, then copy the command output into this environment variable.

Configure Grafana

Continuing the .env from the previous step, modify the following fields:

  • GF_ADMIN_USER: The Grafana admin user.

  • GF_ADMIN_PASSWORD: The Grafana admin password.

Set up alerting (optional)

The repository comes with a predefined set of alerts managed in the monitoring folder. To receive infrastructure and canopy alerts, configure the Discord and PagerDuty notification channel by modifying the following .env fields:

4. Run Canopy

Starting Canopy automatically pulls a snapshot of the latest blockchain.

To verify peer to peer connectivity, run nc -vz <domain> 9001 from the command line. A successful response confirms that the validator accepts connections.

5. Explore Setup

With Canopy running, it is recommended for you to familiarize yourself with the created endpoints:

  • Grafana: https://monitoring.<YOUR_DOMAIN>

  • Web wallet for CNPY: https://wallet.<YOUR_DOMAIN>

  • Block Explorer for CNPY: https://explorer.<YOUR_DOMAIN>

6. Sync the blockchain

While the snapshot is pretty close to the top of the blockchain, some syncing will be required in most cases.

Syncing status may be observed in the Monitoring tab of your web wallet as well as logs and rpc.

If there's any sign of corruption or 'stuck' node or if there's any doubt, contact the community in Discord.

7. Create an 'output' private key

Go to https://wallet.<YOUR_DOMAIN>/key-management

Press "Create New Key" and fill out the form:

Wallet name: name to identify the new key

Password: used to encrypt the new key

This new key will later receive your validator rewards. It is recommended to download the keyfile.json and backup using the "Download Full Keystore" button.

8. Get CNPY

9. Stake CNPY

At https://wallet.<YOUR_DOMAIN>/staking: click the + Add Stake button to initiate a STAKE transaction.

On Step 1. Addresses fill out the following:

  • Staking (Operator) Address:

    • The address created on step 2.

    • Important: ⚠️ use the key from step 2 not step 8. ⚠️

    • This account should be the 'funded' account from step 2.

    • This is the operator address, where subsequent validator transactions like (edit-stake and unstake) should be sent from.

  • Reward Address: Is the address where the staking rewards would go to, can be the same as the Staking (Operator) Address but is recommended to be different.

On Step 2. Amount fill out the following:

  • Amount: Amount of CNPY to stake, the higher the amount the more likely the validator will be chosen to build the block.

On Step 3. Preferences fill out the following:

  • Stake Type: Choose Validation. Delegates are not active validators so is not applicable for this guide.

  • AutoCompound: Preferably select this to auto stake the block rewards, otherwise you may leave unselected to withdraw the block rewards automatically (comes with a penalty).

On Step 4. Committees fill out the following:

  • Committees:

    • Chain IDs where stake should be allocated, type 1.

  • Validator Address: tcp://<DOMAIN>

    • Validator's TCP address (the same <DOMAIN> as defined in step 3).

The last step is to review the information, once reviewed, click on Stake. It will prompt for the Operator addreess's password in order to submit the transaction.

If successful, after the block is processed, you'll see the node validator in the Staking tab like the example:

10. Watch for 10 minutes

  • If Status remains Staked then it's a good sign that your Validator is online and healthy.

See Manage for monitoring and management details.

Last updated