For DePIN/Validator Node provider
Steps to run a Witness Chain PoL Watchtower Client
Last updated
Steps to run a Witness Chain PoL Watchtower Client
Last updated
Before you begin, ensure you have the following
Docker (version 23.0.0 or above, refer: )
Instance comparable to a t2 micro (1 vcpu, 1GB RAM and 5GB harddisk)
There are two aspects in setting up the watchtower,
Registration: so the challengers are aware of it
Running: so the challengers can engage with it
Here's how to get the watchtowers successfully running
Ports to be opened if using public IP:
You can provide the private key (for example, generated from Metamask) which will be used by the Witnesschain's PoL Watchtower client.
Use ECDSA Keypairs
Download and install the witness CLI:
After the installation is completed, verify the cli is installed correctly and upto date ( WitnessChain version v0.0.12)
witness-cli --version
Then proceed to register your watchtower key on WitnessChain's Layer 2 Chain: Use the KeyPair that you would have exported or created using Metamask or any other wallet.
Explanation:
privateKey
is your PoL signing key (Watchtower Key)
walletPublicKey
is the PoL watchtower address (eth address)
havePublicIPv4Address
(and havePublicIPv6Address
) set them to true if you have a public IPv4 (or IPv6)
havePrivateIPv4Address
(and havePrivateIPv6Address
) set them to true if you want to force the use of private IP
saveResultsInDatabase
saves the login, session, and challenge related data in a .sqlite
file within the container
projectName
tags the watchtower with the project - examples include "spheron", "akash", "pingpong", "eigenlayer", etc. This is an optional field
Once you have the watchtower.env
ready, the watchtower client can be started with
you can verify that the challenger is running by looking at the container status
Explanation:
docker run -d
: Runs the container in detached mode (in the background).
you can verify that the watchtower is running by looking at the container status
Once the setting up and registration is successful, you can check the logs from the watchtower client ready for challenges. (docker logs -f pol-watchtower
). Congratulations, you are now a part of our Infinity watch family!
You can pass the required configuration to the docker container env via a file or directly with -e
flag in the run command . Prepare a configuration file watchtower.env
with the following entries as example shown below:
As the only prerequisite is docker, make sure you are running atleast version 23.0.0 or above for the commands mentioned in the doc to work. The days might be rainy or snowy, but we've got umbrellas and sweaters! Join our or Telegram—we're happy to help. :D