返回顶部
d

defillama-openapi-skillDefiLlama开放API

Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
191
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

defillama-openapi-skill

技能名称: defillama-openapi-skill
详细描述:

DefiLlama 公共 API 技能

使用此技能通过 uxc + OpenAPI 运行 DefiLlama 公共 API 操作。

复用 uxc 技能以获取共享的执行、认证和错误处理指导。

前提条件

  • - uxc 已安装并可在 PATH 中使用。
  • 可访问 https://api.llama.fi 的网络。
  • 可访问精选的 OpenAPI 模式 URL:
- https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json

范围

此技能涵盖 api.llama.fi 上的公共只读分析功能:

  • - 协议 TVL 列表
  • 每个协议的详细信息
  • 链概览读取

此技能涵盖:

  • - 写入操作或账户管理
  • DefiLlama Pro 密钥路径认证
  • 分离主机的公共服务,如 coins.llama.fi 和 yields.llama.fi
  • 完整的 DefiLlama 公共 API 功能

认证

此公共技能不需要认证。

核心工作流程

  1. 1. 默认使用固定链接命令:
- command -v defillama-openapi-cli - 如果缺失,则创建它: uxc link defillama-openapi-cli https://api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json - defillama-openapi-cli -h
  1. 2. 首先检查操作模式:
- defillama-openapi-cli get:/protocols -h - defillama-openapi-cli get:/protocol/{protocol} -h - defillama-openapi-cli get:/v2/chains -h
  1. 3. 在更广泛的读取之前,优先进行窄范围读取验证:
- defillama-openapi-cli get:/v2/chains - defillama-openapi-cli get:/protocols - defillama-openapi-cli get:/protocol/{protocol} protocol=aave
  1. 4. 使用键/值参数执行:
- defillama-openapi-cli get:/protocol/{protocol} protocol=aave - defillama-openapi-cli get:/v2/chains

操作

  • - get:/protocols
  • get:/protocol/{protocol}
  • get:/v2/chains

防护措施

  • - 保持自动化在 JSON 输出信封上;不要使用 --text。
  • 首先解析稳定字段:ok、kind、protocol、data、error。
  • 将此 v1 技能视为只读。不要暗示支持钱包、交易或管理员功能。
  • 公共 DefiLlama 数据分布在多个主机上。此技能有意停留在 api.llama.fi 上;当需要统一的 Pro 主机时,请使用单独的 Pro 技能。
  • defillama-openapi-cli <操作> ... 等同于 uxc https://api.llama.fi --schema-url openapischema> <操作> ...。

参考

  • - 使用模式:references/usage-patterns.md
  • 精选的 OpenAPI 模式:references/defillama-public.openapi.json
  • DefiLlama API 文档:https://defillama.com/docs/api

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 defillama-openapi-skill-1776358443 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 defillama-openapi-skill-1776358443 技能

通过命令行安装

skillhub install defillama-openapi-skill-1776358443

下载

⬇ 下载 defillama-openapi-skill v1.0.0(免费)

文件大小: 4.4 KB | 发布时间: 2026-4-17 14:37

v1.0.0 最新 2026-4-17 14:37
- Initial release of the DefiLlama OpenAPI skill for UXC.
- Enables read-only access to DefiLlama's public analytics API via a curated OpenAPI schema.
- Supports protocol TVL list, per-protocol detail, and chain overview reads.
- No authentication required; focuses on public endpoints from api.llama.fi only.
- Outlines recommended CLI linking, operation inspection, and safe-automation guardrails.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部