Testing Guide
This guide will teach you how to run a Validator node locally using Docker. The Validator node will be configured to connect to the Sepolia testnet.
Install docker
Update your existing list of packages.
sudo apt updateInstall a few prerequisite packages which let apt use packages over HTTPS.
sudo apt install -y apt-transport-https ca-certificates curl software-properties-commonAdd the GPG key for the official Docker repository to your system.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -Add the Docker repository to APT sources.
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"Install Docker.
sudo apt install -y docker-ceDocker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running.
sudo systemctl status dockerUsing Docker
Run PostgreSQL
There are three ways to connect PostgreSQL. You can choose one of the following ways.
Connect to PostgreSQL docker.
Connect to local PostgreSQL.
Connect to remote PostgreSQL.
In order to connect to a remote database, you must obtain information about the database and the server. Note the following database details so you can use them to configure your Equito node later.
Server hostname or IP
Port
Username
Password
Database name
The user must be the owner of the database.
This DATABASE_URL should be set in .env file of Equito Node.
[POSTGRES_USER]: The username for the database owner account.
[POSTGRES_PASSWORD]: The password for the database owner account.
[DB_HOST]: The server hostname or IP address of the database server.
[DB_PORT]: The port that the database is listening on. The default port for PostgreSQL is 5432.
[POSTGRES_DB]: The name of the database to use for the Equito node.
[SSL_MODE]: If you are testing on a database that does not have SSL enabled, you can specify disable so that you don't need to go through the process of configuring SSL on your database. On a production node, set this value to require.
When you want to connect PostgreSQL docker
Run PostgreSQL in a Docker container. You can replace mysecretpassword with your own password.
Confirm that the container is running. Note the 5432 port is published 0.0.0.0:5432->5432/tcp and therefore accessible outside of Docker.
If the container is running successfully, the output shows a healthy status:
This is an example of PostgreSQL setting.
When you want to connect to local PostgreSQL
This is an example of PostgreSQL setting. It is the same way as you connect to PostgreSQL docker.
When you want to connect to remote PostgreSQL
This is an example of PostgreSQL setting.
Run Validator node
Create a local directory to hold the Equito Protocol data
Run the following command to create .env file and set environment variables. It includes setttings of wallet and API keys. The wallets should be include more than 0.3 Sepolia ETH and 0.3 BNB.
See how to get the API keys in Configuring node
This is an example of .env setting.
These are the examples of endpoints.
Infura (Ethereum Mainnet & Testnet)
Alchemy (Ethereum Mainnet & Testnet)
Ankr (Binance Mainnet & Testnet)
You can confirm that the variables are set correctly in .env file.
Start the Equito Node by running the Docker image.
Confirm that the container is running. Note the 7890 port is published 0.0.0.0:7890->7890/tcp and therefore accessible outside of Docker.
If the container is running successfully, the output shows a healthy status:
Testnet tokens faucet
These are the faucets to get test tokens.
Binance Testnet
Avalanche Fuji
Celo Alfajores
Fantom Testnet
Polygon Mumbai
Configuring node
Blockchain RPC endpoints
The following services offer Ethereum and Binance API endpoints to work with the Validator node. It is necessary to get API endpoints and set them in .env file.
Alchemy
Visit Alchemy and create API endpoints.


Infura
Visit Infura and create API endpoints.


Ankr
Visit Ankr and create API endpoints.

These are the only environment variables that are required for a Validator node to run. Configure the necessary environment variables in the .env file by obtaining API endpoints from relevant external services. We recommend you to use premium API endpoints for optimal performance and high quality.
Other Configuration
Connect your domain to your hosting. It needs to use SSL for the Domain URL.
Ensure that port 7890 is open for communication with the Equito Node APIs. Redirect your Node URL to this 7890 port using Nginx.
Check all env variables are set correctly.
Check status of docker. When you see logs of Equito Node docker, if it is successful, it will show the following logs.
If all containers are running and you get logs of success, the node is working.
FAQ
How to update the Equito Node docker to up-to-date version?
See the running docker list.
You can get all of dokcer containers list.
Stop and remove the Equito Node docker.
Get the latest version of Equito Node docker.
Run the Equito Node docker.
How to check the runnig Equito Node docker is the up-to-date version?
Get the container ID of running Equito Node docker.
Get the logs of running docker.
If you see the following log, your Equito Node docker should be pulled to a new version.
If you can't see the following log, your Equito Node docker image is up-to-date.
How to verify Node URL is properly linked to Equito Node docker?
When you check the Node URL in web browser, if you set all configuration properly, you can see the following result.

Last updated