Batch Swap for Openclaw

A high-performance trading skill for executing sequential token swaps and automated portfolio rebalancing with independent safety checks.

wpank
v0.1.0
Feb 11, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install batch-swap

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install batch-swap using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Batch Swap?

The Batch Swap skill is a sophisticated automation tool designed for users within the Openclaw Skills ecosystem who need to perform complex, multi-step trading operations. It allows for the execution of multiple token swaps in a controlled sequence, ensuring that each individual transaction undergoes independent safety validation and balance verification before proceeding.

By leveraging subagent orchestration, this skill simplifies tasks such as portfolio rebalancing, diversifying into multiple assets, or executing elaborate trading plans. It provides a robust framework for managing decentralized finance (DeFi) operations while maintaining strict adherence to user-defined safety limits and aggregate daily thresholds.

Batch Swap Use Cases

  • Rebalancing a portfolio to specific target weights (e.g., 50% ETH and 50% USDC).
  • Diversifying capital by purchasing multiple different tokens in a single workflow.
  • Executing sequential trading plans where assets are swapped through multiple intermediaries.
  • Automating batch transactions while ensuring independent safety checks for every step.

How Batch Swap Works

  1. The skill parses the user's input to identify all required swaps, resolving token symbols to their respective addresses.
  2. It performs a comprehensive pre-flight check to verify that the total batch value is within daily safety limits and that the agent has sufficient balances.
  3. Swaps are processed sequentially by spawning a specialized trade-executor subagent for each individual transaction.
  4. The system monitors each execution in real-time, updating the internal balance sheet and confirming transaction success before moving to the next swap.
  5. If a failure occurs and the stopOnFailure flag is set, the process halts to prevent further errors; otherwise, it proceeds through the list.
  6. A detailed summary report is generated, providing transaction hashes, amounts, and gas consumption for the entire batch.

Batch Swap Setup

To utilize this skill within your Openclaw Skills environment, ensure you have the Uniswap MCP server configured and authorized.

# Install the trading suite
openclaw install skill batch-swap

# Configure your safety limits and chain preferences
openclaw config set trading_limit_daily 5000

Batch Swap Data Schema & Taxonomy

Parameter Type Description
swaps Array A list of objects containing tokenIn, tokenOut, and amount.
chain String The blockchain network to execute on (default: ethereum).
stopOnFailure Boolean Whether to terminate the batch if a single swap fails.
execution_summary Object Metadata containing success rates, gas fees, and transaction IDs.

Batch Swap Advanced Features

  • Sequential execution via dedicated subagents to isolate transaction logic.
  • Independent safety validation for every swap in the batch to mitigate risk.
  • Aggregate safety limit monitoring to prevent large-scale unauthorized or accidental trading.
  • Configurable halt-on-failure logic for precise control over complex trading workflows.
  • Native integration with standard DeFi protocols via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*