返回顶部
m

mempool-space-openapi-skill内存池空间接口

Operate mempool.space public Bitcoin and Lightning explorer APIs through UXC with a curated OpenAPI schema, no-auth setup, and read-first guardrails.

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

mempool-space-openapi-skill

mempool.space API 技能

通过 uxc + OpenAPI 使用此技能运行 mempool.space 公共比特币和闪电网络浏览器操作。

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

前提条件

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

范围

此技能涵盖以读取为主的 mempool.space 功能,包括:

  • - 比特币费用估算和内存池状态读取
  • 区块顶端高度检查
  • 地址和交易状态读取
  • 闪电网络搜索、统计、节点排名、节点详情和通道读取

此技能涵盖:

  • - 交易广播或包提交
  • WebSocket 订阅
  • 内部或管理路由
  • mempool.space 暴露的每个 Esplora 兼容端点

认证

此技能中的 mempool.space 公共读取操作无需认证。

核心工作流程

  1. 1. 默认使用固定链接命令:
- command -v mempool-space-openapi-cli - 如果缺失,则创建: uxc link mempool-space-openapi-cli https://mempool.space/api --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/mempool-space-openapi-skill/references/mempool-space-public.openapi.json - mempool-space-openapi-cli -h
  1. 2. 首先检查操作模式:
- mempool-space-openapi-cli get:/v1/fees/recommended -h - mempool-space-openapi-cli get:/mempool -h - mempool-space-openapi-cli get:/address/{address} -h - mempool-space-openapi-cli get:/v1/lightning/search -h - mempool-space-openapi-cli get:/v1/lightning/channels/{short_id} -h
  1. 3. 优先进行窄范围读取,再进行广泛扫描:
- mempool-space-openapi-cli get:/v1/fees/recommended - mempool-space-openapi-cli get:/blocks/tip/height - mempool-space-openapi-cli get:/v1/lightning/statistics/latest
  1. 4. 使用键/值参数执行:
- mempool-space-openapi-cli get:/address/{address} address=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh - mempool-space-openapi-cli get:/tx/{txid}/status txid=4d5d7f2d5dc69aa68a51887db07dd6d906f31f9141320f9f0b4bab76d735a47f - mempool-space-openapi-cli get:/v1/lightning/search searchText=bfx - mempool-space-openapi-cli get:/v1/lightning/channels public_key=033d8656219478701227199cbd6f670335c8d408a92ae88b962c49d4dc0e83e025 status=active - mempool-space-openapi-cli get:/v1/lightning/channels/{shortid} shortid=835866331763769345

操作

  • - get:/v1/fees/recommended
  • get:/mempool
  • get:/blocks/tip/height
  • get:/address/{address}
  • get:/tx/{txid}/status
  • get:/v1/lightning/statistics/latest
  • get:/v1/lightning/search
  • get:/v1/lightning/nodes/rankings
  • get:/v1/lightning/nodes/{publickey}
  • get:/v1/lightning/channels
  • get:/v1/lightning/channels/{shortid}

防护措施

  • - 保持自动化处理 JSON 输出格式;不要使用 --text。
  • 首先解析稳定字段:ok、kind、protocol、data、error。
  • 将此 v1 技能视为只读。不要使用 tx/push、包提交或内部路由。
  • 优先使用此处精选的费用、内存池和闪电网络读取功能,再考虑使用更大的通用 Esplora 功能。
  • mempool.space 是一个公共浏览器服务,因此内存池状态和闪电网络排名可能快速变化。请重新查询,不要假设缓存值仍然有效。
  • 对于 get:/v1/lightning/channels/{shortid},mempool.space 目前接受通道 id 字符串,尽管路由标签显示为 shortid;优先使用搜索或节点通道列表返回的值。
  • mempool-space-openapi-cli <操作> ... 等同于 uxc https://mempool.space/api --schema-url spaceopenapi_schema> <操作> ...。

参考资料

  • - 使用模式:references/usage-patterns.md
  • 精选的 OpenAPI 模式:references/mempool-space-public.openapi.json
  • 官方 mempool 仓库:https://github.com/mempool/mempool

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mempool-space-openapi-skill-1776106861 技能

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

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

通过命令行安装

skillhub install mempool-space-openapi-skill-1776106861

下载

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

文件大小: 6.03 KB | 发布时间: 2026-4-17 15:23

v1.0.0 最新 2026-4-17 15:23
Initial release of mempool-space-openapi-skill.

- Provides read-only access to mempool.space Bitcoin and Lightning public explorer APIs via UXC and curated OpenAPI schema.
- Supports Bitcoin mempool and fee data, block tip height, address and transaction status, and Lightning network statistics and queries.
- Requires no authentication for public read endpoints.
- Enforces best practices and guardrails for safe usage: schema inspection, narrow reads, and stable JSON field parsing.
- Excludes transaction broadcast, admin, and Esplora-generic endpoints.

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

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

p2p_official_large
返回顶部