eigenlayer

Implements EigenLayer restaking, delegation, withdrawals, and AVS operator registration on Ethereum.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill eigenlayer-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eigenlayer
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/eigenlayer
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill eigenlayer-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires viem.

What problem does it solve? AI agents frequently hallucinate EigenLayer contract addresses, confuse restaking with liquid staking, and miss critical protocol mechanics like the two-step withdrawal escrow, all-or-nothing delegation, and slashing exposure. This Skill provides verified proxy addresses, correct ABI signatures, and working code for the full restaking lifecycle on Ethereum mainnet. ## Core Features & Use Cases - LST and Native Restaking: Deposit stETH, rETH, cbETH, and other LSTs into Strategy contracts, or create EigenPods for native ETH restaking with beacon chain proof verification. - Delegation and Operator Management: Delegate restaked assets to operators, register as an operator with metadata, and generate EIP-712 signatures for AVS registration via the AVSDirectory. - Withdrawals, Rewards, and Slashing: Queue and complete withdrawals after the escrow delay, claim rewards via RewardsCoordinator Merkle proofs, and assess operator slashing risk through the AllocationManager. - Use Case: A developer building a restaking dashboard uses the included TypeScript client template to deposit stETH, check delegation status, and queue withdrawals, while consulting the error-code reference to debug a failed completeQueuedWithdrawals transaction. ## Quick Start Ask the agent to deposit 1 stETH into EigenLayer and delegate the restaked shares to a registered operator address.

Frequently Asked Questions about eigenlayer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deposit stETH into EigenLayer with viem?

Approve the StrategyManager proxy (0x858646372CC42E1A627fcE94aa7A7033e7CF075A) to spend your stETH, then call depositIntoStrategy with the stETH strategy address, token address, and amount. The function returns shares representing your restaked position.

How does EigenLayer delegation to an operator work?

Delegation assigns all your restaked shares across all strategies to a single registered operator via DelegationManager.delegateTo. You cannot split delegation across multiple operators from one address, and undelegating automatically queues withdrawals of all assets.

Why does completeQueuedWithdrawals revert on EigenLayer?

The most common causes are the escrow period (minWithdrawalDelayBlocks) not having elapsed, or the Withdrawal struct not exactly matching the original queued withdrawal including nonce and startBlock. Verify the withdrawal root exists and enough blocks have passed before completing.

What is the difference between EigenLayer restaking and liquid staking?

EigenLayer is a restaking protocol, not a liquid staking protocol. You deposit assets that are already staked (LSTs like stETH or rETH) or native beacon chain ETH to secure AVSs, and EigenLayer does not issue a liquid receipt token for deposits.

Can I withdraw restaked ETH from EigenLayer instantly?

No, withdrawals require two separate transactions: queueWithdrawals starts the escrow period, then completeQueuedWithdrawals finalizes after minWithdrawalDelayBlocks has passed. The delay exists so slashing can be processed before funds are released.

How do operators register for an AVS on EigenLayer?

Operators first register via DelegationManager.registerAsOperator, then sign an EIP-712 digest from AVSDirectory.calculateOperatorAVSRegistrationDigestHash. The AVS's ServiceManager submits this signature to registerOperatorToAVS with a unique salt and future expiry.