/install batch-swap
Batch Swap
Execute multiple token swaps in sequence with independent safety validation per swap.
Activation
Use this skill when the user says any of:
- "Swap X for Y and Z"
- "Rebalance to 50% ETH 50% USDC"
- "Buy 3 different tokens"
- "Execute these swaps: ..."
Input Extraction
| Parameter | Required | Default | Source |
|---|---|---|---|
swaps |
Yes | — | List of {tokenIn, tokenOut, amount} |
chain |
No | ethereum | Default chain for all swaps |
stopOnFailure |
No | true | Whether to halt on first failure |
Workflow
-
Parse all swaps from the user's message. Confirm token symbols resolve.
-
Pre-flight check: Verify total spending within daily limits and sufficient balance for all swaps using
check_safety_statusandget_agent_balance. -
Sequential execution: For each swap:
- Launch
Task(subagent_type:trade-executor)with swap parameters - Wait for confirmation before starting next swap
- Update running balance between swaps
- If
stopOnFailure=trueand swap fails, halt remaining swaps
- Launch
-
Report summary:
Batch Swap Complete (3/3 succeeded)
# Swap Amount In Amount Out Tx
1 USDC → WETH 1,000 USDC 0.307 WETH 0xABC...
2 USDC → WBTC 1,000 USDC 0.015 WBTC 0xDEF...
3 USDC → UNI 1,000 USDC 142.3 UNI 0xGHI...
Total gas: $1.26
Error Handling
| Error | User Message | Suggested Action |
|---|---|---|
BATCH_PARTIAL_FAILURE |
"Swap #N failed. Remaining halted." | Review failed swap, re-run remaining |
INSUFFICIENT_BALANCE |
"Insufficient balance for full batch." | Reduce amounts |
SAFETY_AGGREGATE_LIMIT |
"Total batch exceeds daily limit." | Reduce total batch size |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install batch-swap - 安装完成后,直接呼叫该 Skill 的名称或使用
/batch-swap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Uniswap Batch Swap 是什么?
Execute multiple token swaps in sequence. Use when user wants to rebalance, swap into multiple tokens, or execute a multi-step trading plan. Each swap goes through full safety validation independently. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 838 次。
如何安装 Uniswap Batch Swap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install batch-swap」即可一键安装,无需额外配置。
Uniswap Batch Swap 是免费的吗?
是的,Uniswap Batch Swap 完全免费(开源免费),可自由下载、安装和使用。
Uniswap Batch Swap 支持哪些平台?
Uniswap Batch Swap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Uniswap Batch Swap?
由 wpank(@wpank)开发并维护,当前版本 v0.1.0。