Crypto Swap (LightningEX) for Openclaw

A versatile cryptocurrency exchange engine providing instant swaps for over 240 tokens through chat, terminal, or web interfaces.

yoyoemily
v1.3.0
Mar 24, 2026
0
590
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install crypto-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 crypto-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 Crypto Swap (LightningEX)?

The Crypto Swap skill is a robust integration for the LightningEX API, designed to simplify decentralized finance interactions. By leveraging this addition to the Openclaw Skills ecosystem, developers and traders can execute high-speed cryptocurrency exchanges across multiple blockchain networks without leaving their preferred environment. Whether you are automating trades via a script or using natural language in a chat interface, this skill ensures you get the most competitive rates available.

This tool bridges the gap between complex blockchain protocols and user-friendly interfaces. It supports cross-chain bridges, token conversions, and real-time order monitoring, making it an essential component for anyone looking to integrate financial liquidity into their AI agent workflows or local development setups using Openclaw Skills.

Crypto Swap (LightningEX) Use Cases

  • Automated Arbitrage: Use the CLI mode to script checks for exchange rates and execute swaps when thresholds are met.
  • Natural Language Trading: Swap assets like BTC to SOL or ETH to ARB by simply typing a command in your AI chat.
  • Cross-Chain Bridging: Move stablecoins across different networks such as Tron (TRC20) to Binance Smart Chain (BEP20) seamlessly.
  • Order Tracking: Monitor the real-time status of blockchain transactions using a unique order ID.
  • Portfolio Rebalancing: Quickly convert diverse token holdings into a single asset via the integrated Web UI.

How Crypto Swap (LightningEX) Works

  1. Input Detection: The skill identifies a swap request through natural language (Chat), a direct command (CLI), or a button trigger (UI).
  2. Rate Discovery: It queries the LightningEX API to fetch the most accurate exchange rates and network fees for the specified pair.
  3. Validation: The system verifies network compatibility and ensures the requested amount meets minimum transaction requirements.
  4. Execution: A transaction is initiated, providing the user with a deposit address and a unique order ID.
  5. Monitoring: The skill tracks the blockchain confirmation process and notifies the user once the swap is successfully completed.

Crypto Swap (LightningEX) Setup

To get started with this entry in the Openclaw Skills library, install the package globally via npm:

npm install -g crypto-swap

Once installed, you can initialize the interactive wizard or launch the web interface directly from your terminal.

Crypto Swap (LightningEX) Data Schema & Taxonomy

The Crypto Swap skill maintains a lean footprint, primarily interacting with the LightningEX API. The following file structure governs its operation:

File / Directory Description
swap.js The core logic engine handling API calls and CLI state.
assets/ Contains the static HTML, CSS, and JS files for the local Web UI.
package.json Defines dependencies and binary entry points for the CLI.
SKILL.md The technical specification and documentation for the AI agent.

Crypto Swap (LightningEX) Advanced Features

  • Multi-Mode Flexibility: Switch between Chat, CLI, and UI modes depending on your specific workflow needs.
  • Network Specificity: Explicitly define source and destination networks (e.g., TRX, BSC, ETH) to avoid cross-chain confusion.
  • Live Monitoring: Use the monitor command to keep a terminal session active until a transaction hits the 'complete' state.
  • Open Source Core: The main logic resides in swap.js, allowing developers to audit or extend the exchange functionality.
  • Auto-Port Mapping: The UI mode automatically detects and assigns an available port if the default 8080 is occupied.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*