Developers
Blueprint SDK Contexts
Eigenlayer Context

Eigenlayer Context

The EigenlayerContext trait provides a standardized interface for interacting with Eigenlayer services and utilities in your Blueprint.

Overview

The EigenlayerContext trait provides access to core Eigenlayer services and functionality:

Core Services

  • AVS Registry Reader/Writer - For interacting with the AVS registry contracts
  • Operator Info Service - For managing operator information and state
  • BLS Aggregation Service - For handling BLS signature aggregation

Operator Management

  • Query operator stakes and details
  • Track stake history and updates
  • Retrieve operator public keys
  • Get operator IDs and addresses

Stake Management

  • Get stake information for specific blocks
  • Track total stake history
  • Query stake updates and changes
  • Monitor stake across different quorums

Using the Context

1. Define Your Context

First, define your context struct that implements the EigenlayerContext trait:

2. Use the Context in Jobs

You can then use this context in your jobs to access Eigenlayer functionality:

3. Instantiate the Context

Finally, instantiate your context in your main runner: