eigen-avs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEigenLayer AVS Skill
EigenLayer AVS 技能
Query live data about Actively Validated Services (AVS) on EigenLayer: service listings, operators securing each AVS, staker delegations, registration events, and operator-sets.
查询EigenLayer上主动验证服务(AVS)的实时数据:服务列表、为各AVS提供安全保障的运营商、质押者委托信息、注册事件以及运营商组。
Data Source
数据来源
EigenExplorer API —
https://api.eigenexplorer.com- Auth: header (free key at https://developer.eigenexplorer.com)
x-api-token
EigenExplorer API —
https://api.eigenexplorer.com- 身份验证:请求头(可在https://developer.eigenexplorer.com获取免费密钥)
x-api-token
When to use this skill
何时使用本技能
Use when the user asks about:
- AVS (Actively Validated Services) on EigenLayer
- Which operators are securing a specific AVS
- Stakers delegated to a specific AVS
- AVS registration/deregistration events
- Operator-sets for an AVS
- Comparing AVS by TVL, staker count, or APY
当用户询问以下内容时使用本技能:
- EigenLayer上的AVS(主动验证服务)
- 哪些运营商为特定AVS提供安全保障
- 委托给特定AVS的质押者
- AVS的注册/注销事件
- AVS的运营商组
- 按TVL、质押者数量或APY比较不同AVS
How to query
查询方式
Get all AVS (sorted by TVL)
获取所有AVS(按TVL排序)
bash
curl -s "https://api.eigenexplorer.com/avs?withTvl=true&sortByTvl=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs?withTvl=true&sortByTvl=desc&take=10" -H "x-api-token: $EIGEN_API_KEY"Search AVS by name
按名称搜索AVS
bash
curl -s "https://api.eigenexplorer.com/avs?searchByText=eigenda&withTvl=true" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs?searchByText=eigenda&withTvl=true" -H "x-api-token: $EIGEN_API_KEY"Get a specific AVS
获取特定AVS信息
bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS?withTvl=true" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS?withTvl=true" -H "x-api-token: $EIGEN_API_KEY"Get operators registered to an AVS
获取注册到某AVS的运营商
bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operators?take=20" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operators?take=20" -H "x-api-token: $EIGEN_API_KEY"Get stakers for an AVS
获取某AVS的质押者
bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/stakers?take=20" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/stakers?take=20" -H "x-api-token: $EIGEN_API_KEY"Get registration events for an AVS
获取某AVS的注册事件
bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/events/registration?take=20" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/events/registration?take=20" -H "x-api-token: $EIGEN_API_KEY"Get operator-sets for an AVS
获取某AVS的运营商组
bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operator-sets?take=20" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/0xAVS_ADDRESS/operator-sets?take=20" -H "x-api-token: $EIGEN_API_KEY"Get all AVS addresses (lightweight)
获取所有AVS地址(轻量版)
bash
curl -s "https://api.eigenexplorer.com/avs/addresses" -H "x-api-token: $EIGEN_API_KEY"bash
curl -s "https://api.eigenexplorer.com/avs/addresses" -H "x-api-token: $EIGEN_API_KEY"Response Format
响应格式
Format results for the user with:
- Bold AVS names and abbreviated addresses
- TVL in human-readable form (e.g., "$500M")
- Number of operators securing the AVS
- Number of stakers
- APY if available
- Active/inactive status for operator registrations
- Use bullet points, never tables in chat
为用户格式化结果时需包含:
- 加粗的AVS名称和缩写地址
- 易读形式的TVL(例如:"$500M")
- 为该AVS提供安全保障的运营商数量
- 质押者数量
- 若有则显示APY
- 运营商注册的活跃/非活跃状态
- 使用项目符号,聊天中绝不使用表格
Programmatic Usage
程序化调用
javascript
const AVSAPI = require('eigen-agent-skills/skills/eigen-avs/scripts/avs-api');
const api = new AVSAPI('YOUR_API_KEY');
const allAVS = await api.getAllAVS({ sortByTvl: 'desc', take: 10 });
const operators = await api.getAVSOperators('0xAVS_ADDRESS');
const stakers = await api.getAVSStakers('0xAVS_ADDRESS');javascript
const AVSAPI = require('eigen-agent-skills/skills/eigen-avs/scripts/avs-api');
const api = new AVSAPI('YOUR_API_KEY');
const allAVS = await api.getAllAVS({ sortByTvl: 'desc', take: 10 });
const operators = await api.getAVSOperators('0xAVS_ADDRESS');
const stakers = await api.getAVSStakers('0xAVS_ADDRESS');