返回顶部
m

moralis-openapi-skillMoralis OpenAPI技能

Operate Moralis EVM wallet and token reads through UXC with a curated OpenAPI schema, API-key auth, and wallet-intelligence guardrails.

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

moralis-openapi-skill

Moralis Web3 数据 API 技能

使用此技能通过 uxc + OpenAPI 运行 Moralis EVM 数据操作。

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

前置条件

  • - uxc 已安装并可在 PATH 中使用。
  • 可访问 https://deep-index.moralis.io/api/v2.2 网络。
  • 可访问精选的 OpenAPI 模式 URL:
- https://raw.githubusercontent.com/holon-run/uxc/main/skills/moralis-openapi-skill/references/moralis-evm.openapi.json
  • - 一个 Moralis API 密钥。

范围

此技能涵盖以读取优先的钱包智能数据面:

  • - 原生余额查询
  • 钱包代币余额
  • 钱包历史记录
  • 钱包兑换记录
  • 钱包净资产
  • ERC-20 元数据查询
  • ERC-20 代币价格查询

此技能涵盖:

  • - 写入或交易提交流程
  • Solana、Streams 或 NFT 特定数据面
  • 完整的 Moralis API

认证

Moralis 使用 X-API-Key 头部认证。

配置一个 API 密钥凭证并将其绑定到 deep-index.moralis.io/api/v2.2:

bash
uxc auth credential set moralis \
--auth-type api_key \
--api-key-header X-API-Key \
--secret-env MORALISAPIKEY

uxc auth binding add \
--id moralis \
--host deep-index.moralis.io \
--path-prefix /api/v2.2 \
--scheme https \
--credential moralis \
--priority 100

当认证出现问题时,验证当前映射:

bash
uxc auth binding match https://deep-index.moralis.io/api/v2.2

核心工作流程

  1. 1. 默认使用固定链接命令:
- command -v moralis-openapi-cli - 如果缺失,创建它: uxc link moralis-openapi-cli https://deep-index.moralis.io/api/v2.2 --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/moralis-openapi-skill/references/moralis-evm.openapi.json - moralis-openapi-cli -h
  1. 2. 首先检查操作模式:
- moralis-openapi-cli get:/{address}/balance -h - moralis-openapi-cli get:/wallets/{address}/tokens -h - moralis-openapi-cli get:/erc20/{address}/price -h
  1. 3. 优先进行窄范围读取,再进行宽泛的钱包扫描:
- moralis-openapi-cli get:/{address}/balance address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 chain=eth - moralis-openapi-cli get:/erc20/{address}/price address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 chain=eth - moralis-openapi-cli get:/wallets/{address}/net-worth address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 chain=eth
  1. 4. 使用键/值参数执行:
- moralis-openapi-cli get:/wallets/{address}/tokens address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 chain=eth - moralis-openapi-cli get:/wallets/{address}/history address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 chain=eth limit=20

操作组

钱包读取

  • - get:/{address}/balance
  • get:/wallets/{address}/tokens
  • get:/wallets/{address}/history
  • get:/wallets/{address}/swaps
  • get:/wallets/{address}/net-worth

代币读取

  • - get:/erc20/metadata
  • get:/erc20/{address}/price

安全边界

  • - 保持自动化在 JSON 输出信封上;不要使用 --text。
  • 首先解析稳定字段:ok、kind、protocol、data、error。
  • 将此 v1 技能视为只读。不要暗示支持签名或交易广播。
  • Moralis 支持多条链。始终显式传递 chain 参数,而不是假设为以太坊。
  • 钱包历史记录和兑换记录在大范围查询时可能消耗较大。从小范围和窄时间窗口开始。
  • moralis-openapi-cli ... 等同于 uxc https://deep-index.moralis.io/api/v2.2 --schema-url openapischema> ...。

参考资料

  • - 使用模式:references/usage-patterns.md
  • 精选的 OpenAPI 模式:references/moralis-evm.openapi.json
  • Moralis 钱包文档:https://docs.moralis.com/data-api/evm/wallet
  • Moralis 代币文档:https://docs.moralis.com/data-api/evm/token

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 moralis-openapi-skill-1776063610 技能

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

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

通过命令行安装

skillhub install moralis-openapi-skill-1776063610

下载

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

文件大小: 5.44 KB | 发布时间: 2026-4-15 13:28

v1.0.0 最新 2026-4-15 13:28
Initial release of the Moralis OpenAPI skill:

- Enables read-only EVM wallet and token data operations via Moralis API through UXC using a curated OpenAPI schema.
- Requires API key authentication and includes setup for credential and binding management.
- Provides command-line guidance for common wallet balance, token, history, swap, net worth, metadata, and price queries.
- Adds operational guardrails for reliability and efficiency, emphasizing explicit chain selection and narrow queries.

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

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

p2p_official_large
返回顶部