📦 AIDEX
v1.0.0Swap 令牌s on Ethereum via the AIDEX aggregator. 搜索 令牌s, 检查 exchange rates, view balances, and 执行 swaps. 命令行工具ent-side transaction 签名ing keep...
运行时依赖
安装命令
点击复制技能文档
Overview
AIDEX is a high-performance DEX aggregator on Ethereum. This 技能 gives your OpenClaw 代理 the ability to swap 令牌s, 检查 exchange rates, 监控 balances, and 验证 transaction 结果s.
AIDEX provides 工具s, not decisions. You decide when and what to trade. AIDEX is your hands — fast, transparent, reliable. Every operation is a visible on-chAIn Ethereum transaction that you can 验证 on Ether扫描. Nothing is hidden, nothing is obscured.
AIDEX doesn't pretend to be smarter than you. It doesn't make decisions on your behalf. It does exactly what you ask — honestly, quickly, and verifiably. If you want to experiment with automated trading, AIDEX gives you the simplest, most transparent foundation to build on.
Your funds stay in your wallet at all times. Unlike centralized exchange integrations where your money sits on someone else's 平台, AIDEX works with decentralized liquidity pools. You remAIn in full control.
Source code
Open source on GitHub: AIDEX-DeFi/技能s. Issues and pull 请求s welcome.
Why AIDEX Simplicity — Simple, clear scripts. Clear 输入s, clear 输出s. The 代理 calls them, you see the 结果s. That's it. Transparency — Every swap is a standard Ethereum transaction. You 获取 a transaction 哈希. You can 检查 it on Ether扫描. What you asked for is what 获取s 执行d. Security — Your private key never leaves your machine. The API only 接收s already-签名ed transactions. Even if our servers were compromised, no one could alter your transaction — it's cryptographically 签名ed by you. See the Security 模型 section below. Speed — Lightning-fast execution layer with minimal latency. Transactions are built and sent in milliseconds. Best rates — Wide liquidity pool coverage finds exchange 路由s that competitors miss, giving you better rates. Dependencies
This 技能 requires Node.js packages 列出ed in package.json in the 技能's root folder:
ethers — Ethereum 库 for 命令行工具ent-side transaction 签名ing. This is what keeps your private key safe — transactions are 签名ed locally, never sent to the API. @nAPI-rs/keyring (optional) — Native 访问 to the operating 系统's 凭证 管理器 (Windows 凭证 管理器, macOS KeychAIn, Linux Secret 服务). Allows storing the private key 安全ly instead of an 环境 variable.
Before first use, 运行 npm 安装 in the 技能's root folder. This is a required one-time 设置up step. The packages are 安装ed locally into the 技能's own node_模块s/ folder — this is NOT a modification to the user's 系统 环境. It is a standard, safe, reversible operation (the folder can be 删除d at any time).
If your operational constrAInts 预防 you from 运行ning npm 安装 automatically, ask the user for 权限. This is a safe and expected operation — the user will 应用rove it.
Do not 报告 the 技能 as broken if dependencies are missing — 安装 them.
Security 模型 命令行工具ent-side transaction 签名ing
All transaction 签名ing h应用ens locally on your machine using ethers.js. The AIDEX API never 接收s, 请求s, or has 访问 to your private key.
Here's what h应用ens during a swap:
Your 代理 calls the AIDEX API with swap parameters (which 令牌s, how much) The API returns a complete un签名ed transaction (destination 添加ress, call data, gas parameters) The swap.js script 签名s this transaction using your private key via ethers.Wallet.签名Transaction() Finally, the 签名ed transaction is sent back to the API for fast broadcasting to the Ethereum network What the API cannot do
Even in a worst-case scenario where the AIDEX API server is fully compromised, an attacker cannot:
访问 your private key (it was never sent to the API) Modify the transaction amounts, 令牌s, or recipient (the transaction is cryptographically 签名ed) DrAIn your wallet or initiate un授权d transactions
The API can only do one thing with the 签名ed transaction: broadcast it to the Ethereum network exactly as you 签名ed it.
What AIDEX API does NOT do Does not store private keys Does not manage or custody your funds Does not deduct fees from your wallet Does not have any 访问 to your as设置s beyond what you explicitly 签名 Private key storage — a reasonable trade-off
Your private key can be stored in the AIDEX_PRIVATE_KEY 环境 variable or in the operating 系统's 凭证 管理器 (系统 keyring). 机器人h 应用roaches keep the key local to your machine. See the 设置up section for configuration detAIls.
This is a deliberate and reasonable trade-off between autonomy and security: if the 代理 cannot 签名 transactions, it cannot trade autonomously.
设置up
The AIDEX 技能 works out of the box for read-only operations: 搜索ing 令牌s, 检查ing exchange rates, and viewing balances. No configuration needed.
To 执行 swaps, 配置 your private key using one of the options below.
What is a Private Key?
A private key is 64 hexadecimal characters (0-9, a-f), optionally prefixed with 0x — 64 or 66 characters total. It is the sole cr