Prerequisites

  1. System Requirements:

  2. Install Docker: Forta nodes use Docker containers. If Docker is not already installed, follow the official Docker installation guide.

  3. Install docker-compose:

    sudo apt update
    sudo apt install docker-compose
    
    
  4. Set Up a Forta Wallet: Create or import an Ethereum wallet for Forta node interactions. You’ll need the wallet’s private key and enough ETH to cover transaction fees.

  5. Install Node.js: Node.js is required for the Forta CLI. Install it by running:

    curl -fsSL <https://deb.nodesource.com/setup_18.x> | sudo -E bash -
    sudo apt install -y nodejs
    
    

Step 1: Install the Forta CLI

The Forta CLI is used to initialize and manage the validator node.

  1. Install the CLI globally:

    npm install -g @forta/cli
    
    
  2. Verify the installation:

    forta --version
    
    

Step 2: Initialize the Node

  1. Run the initialization command:

    forta init
    
    
  2. Provide the following details when prompted:


Step 3: Configure the Node

After initialization, a config.yml file will be created in the Forta node directory.

  1. Open the config.yml file for editing:

    nano config.yml