Prepare Operator Accounts
Operators run the node software (Execution and Validation services). In order to operate, they need to register to EigenLayer, deposit stake, opt-in to securing the AVS and run the node software.
Prerequisites
Install Foundry, or verify existing installation with
cast -V
.Private Key for an Ethereum Holesky account with:
≥ 0.25 ETH on Holesky
≥ 0.02 ETH on Base Sepolia
You can use the same private key used to deploy the AVS contracts in the previous step.
Operator Setup Script
Download the script
Save it as setup_operators.sh
in your AVS working directory.
Run the script
./setup_operators.sh
The script will check for the required dependencies, then ask for the L1 network of your choice - enter '1' and press enter.
Then, enter the private key of the account used to deploy the AVS:
--- L1 Chain Configuration ---
[INFO] L1_CHAIN not found in .env.
Please select the L1 chain to use:
1) holesky
2) sepolia
Enter number (1 for holesky, 2 for sepolia): 1
[INFO] You selected holesky.
[SUCCESS] holesky has been set as L1_CHAIN in .env.
[INFO] Using RPC URL for holesky: https://1rpc.io/holesky
--- Account Setup ---
Enter the private key for the deployer account (will not be displayed):
Wait for the script to finish (~5min)
The script automatically performs the following actions:
Generate keys for two new accounts
Transfer a small amount of holETH to both
For all three accounts:
Register as EigenLayer Operator
Deposit a small amount of stake on EigenLayer
Opt-in to the AVS on EigenLayer contracts
Register as an Operator on AVS contracts
Organize
.env
file.
Next, submit your first task using a simple command.
Last updated