← 返回 Skills 市场
aviclaw

ZeroEx Swap

作者 aviclaw · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
630
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install zeroex-swap
功能描述
Execute token swaps using the 0x API with support for price quotes, gasless meta-transactions, and on-chain trade history retrieval.
安全使用建议
This skill appears to do what it says, but it's handling real funds so proceed carefully: 1) Use a dedicated hot wallet with minimal funds and never use your main seed phrase. 2) Be aware the PRIVATE_KEY must be provided in environment variables — keep it secret and ephemeral; avoid long‑lived env variables on shared systems. 3) The code uses default third‑party RPC endpoints (e.g., llamarpc.com and mainnet.base.org); these providers will see your transactions and addresses — if privacy/trust is a concern, set RPC_URL to your own node or a trusted RPC. 4) Review the code before running; there are small implementation inconsistencies (e.g., swap.js accepts ZEROEX_PRIVATE_KEY but SKILL.md doesn't mention it, and quote.js references path/fileURLToPath without importing them) which are likely bugs rather than malicious. 5) Consider running in a sandboxed environment and test with tiny amounts first.
功能分析
Type: OpenClaw Skill Name: zeroex-swap Version: 1.0.1 This skill is classified as suspicious due to its inherent high-risk capabilities, specifically requiring and directly handling a user's `PRIVATE_KEY` and `ZEROEX_API_KEY` to execute real cryptocurrency swaps. While the code (`swap.js`, `quote.js`) transparently implements the stated purpose of interacting with the 0x Swap API and includes some security best practices (e.g., exact allowance), the direct handling of a private key for real fund transactions represents a significant risk. The `SKILL.md` instructions guide the AI agent to perform these high-risk operations, which, while aligned with the skill's purpose, could lead to financial loss if misused or if the agent's environment is compromised.
能力评估
Purpose & Capability
Name/description (0x swaps, quotes, gasless meta-tx) match the code and SKILL.md. Requested env vars (ZEROEX_API_KEY, PRIVATE_KEY) and dependencies (axios, ethers, viem) are proportionate to making API calls and signing/sending transactions.
Instruction Scope
SKILL.md and the scripts instruct the agent to call 0x endpoints, sign EIP‑712 payloads, and use an RPC provider — all expected. The skill requires the user's private key to sign transactions (sensitive but necessary). The SKILL.md and code do expose and log wallet address and will send data to 0x and to configured/default RPC endpoints (which can observe requests and transactions).
Install Mechanism
There is no opaque install downloader; it's an instruction-only skill with normal npm dependencies declared in package.json. Dependencies (axios, ethers, viem) are appropriate and expected.
Credentials
Requested environment variables are limited and appropriate: ZEROEX_API_KEY (API access) and PRIVATE_KEY (to sign/send swaps). One minor mismatch: swap.js also accepts ZEROEX_PRIVATE_KEY as an alternative but SKILL.md doesn't mention it. No unrelated secrets are requested.
Persistence & Privilege
Skill does not request always:true, does not modify other skills or system-wide configs, and has no persistent installation actions declared. Autonomous invocation is allowed but is the platform default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install zeroex-swap
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /zeroex-swap 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Declared required environment variables (`ZEROEX_API_KEY`, `PRIVATE_KEY`) in the documentation for clarity. - No functional or API changes; documentation update only.
v1.0.0
- Initial release of ZeroEx Swap skill. - Supports token price quotes and swap execution via 0x API. - Includes tools for retrieving swap and gasless trade history. - Provides instructions for traditional and gasless (meta-transaction) swaps. - Security guidance and environment variable requirements clearly documented.
元数据
Slug zeroex-swap
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

ZeroEx Swap 是什么?

Execute token swaps using the 0x API with support for price quotes, gasless meta-transactions, and on-chain trade history retrieval. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 630 次。

如何安装 ZeroEx Swap?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install zeroex-swap」即可一键安装,无需额外配置。

ZeroEx Swap 是免费的吗?

是的,ZeroEx Swap 完全免费(开源免费),可自由下载、安装和使用。

ZeroEx Swap 支持哪些平台?

ZeroEx Swap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ZeroEx Swap?

由 aviclaw(@aviclaw)开发并维护,当前版本 v1.0.1。

💬 留言讨论