Keeper registration, activation, management, stake deposit and withdrawal, compensation withdrawal are done via PowerAgent .
To register a new keeper, follow the instructions below:
Navigate to the PowerAgent Web UI for or .
Press βConnectβ and connect with your Admin wallet.
Press the βCreate Keeperβ button:
Select the most recent agent version. Press the βCreate Keeperβ button at the bottom:
In the keeper creation pop-up window, specify the amount of CVP to stake (no less than 1000) and the Worker address which you created beforehand:
An βUnlockβ button will light up. Press and confirm the transaction. Afterwards, press βCreate keeperβ.
Afterwards, a keeper will be created, but not activated. Proceed to Installation Section and install the node software.
Node installation
Follow one of guides listed below based on the chosen method:
Installation
Start with a clean AMD-64 architecture distribution (the code is given for Ubuntu or Debian.
Install NodeJS, npm, Docker, and Docker-Compose
Install NodeJS and npm
Install Docker and Docker Compose
Navigate to a directory of your choice:
cd /path/to/the/directory/of/your/choice
Clone the standalone repository and cd to it:
git clone https://github.com/powerpool-finance/powerpool-agent-v2-compose
cd powerpool-agent-v2-compose
Generate the worker keyfile:
npm i
node jsongen.js ${YOUR_WORKER_PRIVATE_KEY} ${A_PASSWORD_OF_YOUR_CHOICE}
Mind that the password will be specified in the config later on, so remember it.
Open the config file with a text editor of your choice. For the sake of an example, here we open it with nano
nano config/main.yaml
Fill the file out according to the schema, substituting the variables where needed (numerical values can also be changed, if you so desire). Do not remove ββ (quotation marks).
Do not forget to replace ${variable_name} with actual variable.
[OPTIONAL] Change the name of the package if you want to run several instances of the PowerAgent on the same machine.
Locate the IPFS package in the System Packages menu;
Navigate to Peers - Add Connection;
Open WebUI;
Fill in the fields when prompted by DAppNode installation UI:
Fields to fill
Worker address #This field should contain
#the address of your worker.
Worker key #Remember the keyfile you generated?
#Upload it here.
Worker keyfile password #The password to the keyfile you chose
#during generation
Network #Sepolia or Gnosis, whichever network
#you are running on
Execution client RPC #The Websockets RPC address
#of the execution client,
#which PowerAgent will connect to.
#Look it up in the logs tab
#of your execution client you installed earlier.
#The default for Sepolia Geth may be like
#ws://sepolia-geth.dappnode:8546.
Agent address #The address of the latest version
#of the PowerAgent contract
#on the appropriate chain.
####Leave these empty:####
Data source
Graph URL
API Server
Sentry SDK data source name
##########################
Number of blocks to elapse before a tx is resent or dropped #4
Max gase price in GWei for tx resending #500
Maximal resending attempts number #4
Logging level #"debug"
Accrue reward on the poweragent address
#True/False. Default: False.
#This value governs whether you accrue the rewards on your worker address or have them transferred immediately upon conferring. Keep in mind that the former option is more gas-efficient.
Execute tasks when block base fee is greater than max base fee
#True/False. Default: False.
#This field also accepts a Boolean value. In PowerAgent, the Job owner may set an upper bound on the gas cost for the purposes of reward computation. If you wish to execute the transaction even in the case of such an upper bound depressing your reward amount, select True.
Max Priority Fee Per Gas
#Default: 60000 This field accepts an integer value, to which the max priority fee per gas shall be set.
Update
The package update is as straightforward as possible: locate the new package by its IPFS hash and press βUpdateβ. The configuration from the previous version will persist.
PowerAgent Node can be added as a service into another docker container.
Create /config and /keys folders alongside your docker-compose.yaml file.
Follow the Standalone instructions to obtain the keyfile and the main.yaml config file and place them into the corresponding folders.
Add the following service into the docker-compose.yaml: