Scan Node Requirements
The following are the requirements for running a Forta scan node:
-
64-bit Linux distribution
-
CPU with 4+ cores
-
16GB RAM
-
Connection to Internet
-
Docker v20.10+
-
100GB SSD (in addition to full node requirements)
-
Recommended: Full node (any chain)
First, we need to install docker: copy and paste all
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt-cache policy docker-ce
sudo systemctl status docker
For more details about Install Docker
Add a file called daemon.json to your /etc/docker directory with the following contents:
{
"default-address-pools": [
{
"base":"172.17.0.0/12",
"size":16
},
{
"base":"192.168.0.0/16",
"size":20
},
{
"base":"10.99.0.0/16",
"size":24
}
]
}
This daemon.json should be located here
Then restart docker with
systemctl restart docker
Initialize Forta Directory (choose a passphrasse): copy & paste directly to the terminal
$ forta init --passphrase <your_passphrase>
This generates a config directory, a private key, and output your a scaner address
Scanner address: 0xAAA8C491232cB65a65FBf7F36b71220B3E695AAA
Successfully initialized at /yourname/.forta
Then create fortad service
echo "[Unit]
Description=Forta
After=network.target
[Service]
Environment="FORTA_DIR=/root/.forta"
Environment="FORTA_PASSPHRASE=<your_passphrase>"
User=root
Type=simple
ExecStart=forta run
Restart=on-failure
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/fortad.service
Now, you need create an Ethereum mainnet API Key using Alchemy Growth plan and integrate your private keys to the config.yml
file from the root/.forta/
Go to AlchemyAPI and choose the 49$/month plan (this plan allows to use trace_block function)
Create your account and attach your credit card for the payment
Once payment done you need to edit your Ethereum Mainnet App and take your KEY (https://):
Then you need to put your keys to the config.yml file on 8 and 13 lines:
Then check docker
docker ps
Then enable service and restart
sudo systemctl daemon-reload
sudo systemctl enable fortad
sudo systemctl restart fortad
journalctl -u fortad -f
Then run forta
$ forta run --passphrase <your_passphrase>
Then check the status
forta status
You should have this output
Now you have to create a Metamusk Wallet Address on Polygon and fund it with 1 MATIC
Follow this LINK to see tutorial
Once your Polygon wallet created on MetaMask and funded with 1 MATIC, run this command:
forta register --owner-address <Your_Polygon_Address> --passphrase <your_passphrase>
Once transaction finished you have to send FORM that you received by e-mail
I hope this guide helped you to run your node
Nick