Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
LI.FI Skill 2.0.1 Changelog - Major skill rewrite with stricter security and usage rules for all DeFi swaps and bridges. - Default slippage increased to 10%; dynamically adjustable if user requests. - All /v1/quote requests now require &skipSimulation=true to ensure compatibility with delegated wallets. - Explicit support and special instructions for Sui chain swaps and bridging (chain ID 9270000000000000). - Clear separation for handling ERC-20 approval flows, ensuring all approvals use provided tools. - After transaction, always return a clickable block explorer link for easy tracking. - Only documented LI.FI API endpoints may be used; no guessing or external API calls.
What This Skill Does
Connects to the LI.FI API to quote, execute, and track cross-chain and same-chain token swaps and bridges. Handles ERC-20 approvals, constructs transaction requests, and supports EVM chains plus Sui and Solana. Routes all DeFi token operations through LI.FI.
Aggregates bridges and DEXes into a single API call instead of requiring separate integrations per protocol.
When to use it
- Swapping ETH for USDC on Base
- Bridging tokens from Optimism to Ethereum mainnet
- Checking the status of a cross-chain transfer by tx hash
- Getting multiple route options ranked by best outcome
- Executing a same-chain Sui token swap
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: swap 0.001 ETH for USDC on Base
- 1Fetch wallet address using defi_get_wallet
- 2Call GET /v1/quote with fromChain=8453, toChain=8453, fromToken=ETH, toToken=USDC, fromAmount in wei, slippage=0.10, skipSimulation=true
- 3Present estimated output amount, fees, and slippage to user
- 4Check if ERC-20 approval is needed based on transactionRequest.value and estimate.approvalAddress
- 5Execute transaction using defi_send_transaction or defi_approve_and_send depending on approval requirement
Transaction broadcast with a basescan.org link to view the swap
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.