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

1

Download the script

Save it as setup_operators.sh in your AVS working directory.

2

Make the script executable

chmod +x setup_operators.sh
3

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:

setup_operators.sh
--- 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): 
4

Wait for the script to finish (~5min)

The script automatically performs the following actions:

  1. Generate keys for two new accounts

  2. Transfer a small amount of holETH to both

  3. For all three accounts:

    1. Register as EigenLayer Operator

    2. Deposit a small amount of stake on EigenLayer

    3. Opt-in to the AVS on EigenLayer contracts

    4. Register as an Operator on AVS contracts

  4. Organize .env file.

🎉 Success!

Next, submit your first task using a simple command.

Last updated