Cover photo

How to Setup an AVS Operator

The setup for AVS Operators has been updated since the release of this article. For the most up to date information please use the Chainbase operator docs as an authoritative source! https://docs.chainbase.com/node/operator

AVS Registry Contract: 0x5e78eff26480a75e06ccdabe88eb522d4d8e1c9d

Name

Proxy

Implementation

Notes

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/transparent/ProxyAdmin.sol

https://holesky.etherscan.io/address/0xdfbd62c5d8c5739852f67f2d7d2148fc5bf2ce8e

onwer:0xB3500b9D97C1F26B92f248CACa6906C02b34409A

https://github.com/chainbase-labs/chainbase-avs-contracts/blob/main/src/AVS.sol

https://holesky.etherscan.io/address/0x5e78eff26480a75e06ccdabe88eb522d4d8e1c9d#code

https://holesky.etherscan.io/address/0x0470364dcec9a1da4a011ac23df6f50d9f6da60f#code

Proxy: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.1/contracts/proxy/transparent/TransparentUpgradeableProxy.sol

šŸš€Introduction

Not another AVS! But, yes, indeed there will be another - because Chainbase will be using Eigenlayer for its execution layer. AVS Operators play a crucial role in Chainbaseā€™s 4-Layer, Dual-Staking, Dual-Chain, data network. Operators process data and receive rewards, directly incentivized by network tokenomics.

The purpose of this guide is to assist a would-be Operator understand and execute the requirements to provide computational resources for the execution layer of Chainbase. Being an operator for Chainbase is a unique and honorable activity - as youā€™ll be actively contributing to the infrastructure of the network.

The great news is that becoming an Operator is a standardized, universal and simple process. Per Eigenlayer documentation, ā€œAny Ethereum address can serve as an Operator [ā€¦] An Operator can participate in the EigenLayer network without having any restaked tokens.ā€ Moreover, an Operator can choose can interact with multiple AVSs using the same base setup, so there is minimal opportunity cost to setting one up for Chainbase.

Journey along and see the fastest way to do so!

ā“Requirements

Before dedicating your valuable resources, take some time to ensure you have the following requirements met.

Hardware

Class

vCPUs (10th gen+)

Memory

Networking Capacity

General Purpose - large

2

8 GB

5 Mbps

General Purpose - xl

4

16 GB

25 Mbps

General Purpose - 4xl

16

64 GB

5 Gbps

Software

āž•Docker: Docker is a requirement for AVS operators.

āž•Docker Compose: Docker Compose is used alongside Docker for executing Operator software.

āž•Linux Environment: Eigenlayerā€™s CLI only runs in a Linux environment.

āž•Go: Two out of three installation routes require the use of Go. Itā€™s safer to go with Go than go without. šŸ˜‰

šŸ› Set Up

1. Install your Operator šŸ“„

The installation of an AVS operator requires several steps, as is covered in depth in EIgenlayerā€™s comprehensive docs. There are three routes outlined for installation:

2. Create or Import your Keys šŸ”‘

As stated, a working address is required. Once you have the CLI installed, you can import existing ECDSA or BLS keys using the eigenlayer operator keys import command. Otherwise, you will need to create a new key using the eigenlayer operator keys create command.

3. Fund your wallet šŸ‘œ

Best practice suggests that youā€™ll need at least 1 ETH to cover the gas cost of the operator registration. Make sure to send at least 1 ETH to your operatorā€™s address. Unsure of the address? You can check the operator.yaml .

4. Configure your Operator šŸ”§

A funded operator still needs to be configured! Use eigenlayer operator config create . There are several steps here and we recommend that you follow Eigenlayerā€™s official docs on how to do so.

ā„¹ For a full wrap-around experience, we also recommend you use Chainbaseā€™s RPC for any RPC configuration necessary :)

5. Check that your Operator is Functional šŸ”

Once you have installed eigenlayer, run the following to verify that your operator is correctly operating and correctly registered with Eigenlayer:

eigenlayer operator status operator.yaml

6. Install Chainbase-AVS-CLI ā›“

After that, download the latest chainbase-avs-cli release from here and install it on your local machine.

7. Register your operator ā†—

  1. git clone <https://github.com/chainbase-labs/chainbase-avs-contracts.git>

  2. rename avs.toml.example to avs.toml and replace filed: operator_config_path,keystore_pwd

Run the following command to register as a Chainbase operator:

chainbase-avs-cli register --config ~/path/to/avs.toml

8. Run your AVS ā†—

Edit operator.yamlā€™s private_key_store_path point to /opt/operator.yaml.

Run the following command

export OPERATOR_CONFIG_PATH=/path/to/operator.yaml EIGEN_KEY_PATH=/path/to/ecdsa.key.json docker-compose up -d

Thatā€™s it ! Your operator should be fully functional šŸš€šŸš€šŸš€

šŸ¤šŸæGet Involved

Chainbase is building a burgeoning community of developers and crypto enthusiasts passionate about AI and data access. Besides becoming an Operator, there are many opportunities for interested technologists to get involved. Come check out our Discord and get to know more of our team and community. Weā€™d love to see where you fit!

Chainbase Network - Blog logo
Subscribe to Chainbase Network - Blog and never miss a post.
#prima materia#testnet#tutorial