1inch DEX Aggregator for Openclaw

A powerful crypto trading skill that utilizes 1inch v5.2 API to find and execute the most cost-effective token swaps across multiple decentralized exchanges.

eric1099281
v1.0.0
Mar 31, 2026
0
737
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install 1inch

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 1inch 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 1inch DEX Aggregator?

The 1inch DEX Aggregator skill is a sophisticated integration for AI agents designed to navigate the complex landscape of decentralized finance. By leveraging the 1inch v5.2 API, this skill allows agents to programmatically access deep liquidity and optimized routing across major blockchains including Ethereum, BSC, Polygon, and Arbitrum. It serves as a bridge between high-level trading intent and low-level blockchain execution.

Developers using Openclaw Skills can empower their agents to provide real-time pricing data, perform gas estimations, and generate transaction data for token swaps. The skill focuses on efficiency, ensuring users receive the best possible exchange rates by scanning hundreds of liquidity sources simultaneously.

1inch DEX Aggregator Use Cases

  • Automated portfolio rebalancing across multiple EVM-compatible chains.
  • Real-time price monitoring and quote generation for specific token pairs.
  • Integrating decentralized trading capabilities into chat-based AI interfaces.
  • High-efficiency arbitrage detection using optimized routing algorithms.
  • Managing treasury operations with slippage protection and gas optimization.

How 1inch DEX Aggregator Works

  1. The user or agent specifies a trade intent including source token, destination token, and amount.
  2. The skill calls the 1inch Quote endpoint to identify the most efficient path across various DEXs.
  3. A detailed quote is returned, including expected output, estimated gas costs, and the routing path.
  4. If the user proceeds, the skill hits the Swap endpoint to generate the necessary transaction data (calldata).
  5. The generated transaction data is then ready to be signed and broadcasted to the blockchain by the user's wallet.

1inch DEX Aggregator Setup

To get started with this skill, you need an API key from the 1inch Developer Portal. Install the necessary dependencies using pip:

pip install requests

Initialize the client in your environment:

from oneinch_client import OneInchClient
client = OneInchClient(api_key="YOUR_1INCH_API_KEY")

1inch DEX Aggregator Data Schema & Taxonomy

The skill processes and returns structured data consistent with DeFi standards. Below are the key data structures:

Object Key Fields Description
Token Info symbol, address, decimals Metadata for the assets being traded.
Quote toTokenAmount, estimatedGas The result of a price discovery query.
Transaction data, to, value, gasPrice The raw hex data required for blockchain execution.
Error code, message Standardized HTTP error responses (400, 401, 429).

1inch DEX Aggregator Advanced Features

  • Multi-chain support for over 8 major networks including Optimism and Avalanche.
  • Advanced routing complexity levels to balance between gas costs and price impact.
  • Partial fill support to ensure trades execute even in volatile liquidity conditions.
  • Limit order functionality for non-immediate execution strategies.
  • Custom protocol filtering to include or exclude specific liquidity sources.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*