System Requirements:
Install Docker: Forta nodes use Docker containers. If Docker is not already installed, follow the official Docker installation guide.
Install docker-compose:
sudo apt update
sudo apt install docker-compose
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.
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
The Forta CLI is used to initialize and manage the validator node.
Install the CLI globally:
npm install -g @forta/cli
Verify the installation:
forta --version
Run the initialization command:
forta init
Provide the following details when prompted:
After initialization, a config.yml file will be created in the Forta node directory.
Open the config.yml file for editing:
nano config.yml