[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KVRN79S8PGX3VP1WD2G75":3,"skill-same:01M77KVRN79S8PGX3VP1WD2G75":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":54},"01M77KVRN79S8PGX3VP1WD2G75","lifi",null,"Cross-chain token swaps and bridges via the LI.FI protocol. Get quotes, execute transfers, track progress, and compose DeFi operations across 35+ blockchains.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fl\u002Flifi-crosschain\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lifi\ndescription: Cross-chain token swaps and bridges via the LI.FI protocol. Get quotes, execute transfers, track progress, and compose DeFi operations across 35+ blockchains.\nuser-invocable: true\nargument-hint: \"[swap|bridge|track|routes|zap] \u003Cdetails>\"\nmetadata: {\"openclaw\":{\"emoji\":\"🔗\",\"requires\":{\"bins\":[\"curl\"]},\"primaryEnv\":\"LIFI_API_KEY\"}}\n---\n\n# \u002Flifi — Cross-Chain Swaps & Bridges\n\nLI.FI is a cross-chain bridge and DEX aggregation protocol. It finds optimal routes across 35+ blockchains, comparing dozens of bridges (Stargate, Hop, Across, etc.) and DEXes (Uniswap, SushiSwap, 1inch, etc.) to execute token swaps and cross-chain transfers.\n\n## Arguments: `$ARGUMENTS`\n\nParse the arguments:\n- **First positional arg**: Action — `swap`, `bridge`, `track`, `routes`, `zap`, or a natural language request\n- **Remaining args**: Details (token names, amounts, chains, tx hashes, etc.)\n\nIf no arguments are provided, ask the user what they want to do.\n\n## Key Concepts\n\n- **Base URL**: `https:\u002F\u002Fli.quest\u002Fv1`\n- The API returns `transactionRequest` objects (to, data, value, gasLimit, gasPrice) ready to sign — provide these to the agent's wallet\n- **Native token address**: `0x0000000000000000000000000000000000000000` (for ETH, MATIC, BNB, etc.)\n- Amounts are always in the token's **smallest unit** (wei): 1 ETH = `1000000000000000000` (18 decimals), 1 USDC = `1000000` (6 decimals)\n- Optional API key via `x-lifi-api-key` header for higher rate limits (not required)\n\n---\n\n## API Reference\n\n### Discovery Endpoints\n\n#### GET \u002Fv1\u002Fchains — List supported blockchains\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fchains\"\n# Optional: ?chainTypes=EVM or ?chainTypes=SVM\n```\n\n#### GET \u002Fv1\u002Ftokens — List supported tokens\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftokens?chains=1,137\"\n# Optional: chainTypes, minPriceUSD\n```\n\n#### GET \u002Fv1\u002Ftoken — Get specific token details\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftoken?chain=1&token=USDC\"\n# chain (required): chain ID or name. token (required): address or symbol\n```\n\n#### GET \u002Fv1\u002Fconnections — Check available swap routes\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fconnections?fromChain=1&toChain=137&fromToken=0x0000000000000000000000000000000000000000\"\n# Optional: toToken, chainTypes, allowBridges\n```\n\n#### GET \u002Fv1\u002Ftools — List available bridges and DEXes\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftools\"\n# Returns {bridges: [{key, name}], exchanges: [{key, name}]}\n```\n\n### Quote & Swap Endpoints\n\n#### GET \u002Fv1\u002Fquote — Get optimal route + transaction data\nThe primary endpoint for initiating any swap or bridge.\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote?\\\nfromChain=1&toChain=137\\\n&fromToken=0x0000000000000000000000000000000000000000\\\n&toToken=0x0000000000000000000000000000000000000000\\\n&fromAddress=0xYOUR_WALLET\\\n&fromAmount=1000000000000000000\\\n&slippage=0.03\"\n```\n**Required**: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount\n**Optional**: toAddress, slippage (decimal, e.g. 0.03 = 3%), integrator, order (RECOMMENDED|FASTEST|CHEAPEST|SAFEST), allowBridges, allowExchanges\n\nReturns: `action`, `estimate` (toAmount, fees, executionDuration), and `transactionRequest` (to, data, value, gasLimit).\n\n#### GET \u002Fv1\u002Fstatus — Track cross-chain transfer\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fstatus?txHash=0xTX_HASH\"\n# Optional: bridge, fromChain, toChain\n```\nReturns: `status` (NOT_FOUND, PENDING, DONE, FAILED), `substatus` (COMPLETED, PARTIAL, REFUNDED), source\u002Fdestination tx details.\n\n### Advanced Routing\n\n#### POST \u002Fv1\u002Fadvanced\u002Froutes — Compare multiple route options\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002Froutes\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"fromChainId\": \"1\",\n    \"toChainId\": \"137\",\n    \"fromTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n    \"toTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n    \"fromAddress\": \"0xYOUR_WALLET\",\n    \"fromAmount\": \"1000000000000000000\",\n    \"options\": {\"order\": \"RECOMMENDED\"}\n  }'\n```\n**Required**: fromChainId, toChainId, fromTokenAddress, toTokenAddress, fromAddress, fromAmount\n**Optional**: toAddress, slippage, options.order\n\nReturns: `routes[]` array — each route has steps, estimated output, fees, and execution time.\n\n#### POST \u002Fv1\u002Fadvanced\u002FstepTransaction — Get tx data for a route step\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002FstepTransaction\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ ...step object from routes response... }'\n```\nPass the entire step object from a route. Returns `transactionRequest` ready to sign.\n\n#### POST \u002Fv1\u002Fquote\u002FcontractCalls — Zaps (multi-action DeFi composition)\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote\u002FcontractCalls\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"fromChain\": \"1\",\n    \"toChain\": \"137\",\n    \"fromToken\": \"0x0000000000000000000000000000000000000000\",\n    \"toToken\": \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n    \"fromAddress\": \"0xYOUR_WALLET\",\n    \"fromAmount\": \"1000000000000000000\",\n    \"contractCalls\": [\n      {\n        \"toContractAddress\": \"0xTARGET_CONTRACT\",\n        \"toContractCallData\": \"0xENCODED_FUNCTION_CALL\",\n        \"toContractGasLimit\": \"200000\"\n      }\n    ]\n  }'\n```\n**Required**: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount, contractCalls[]\n**Optional**: slippage\n\n### Gas Information\n\n#### GET \u002Fv1\u002Fgas\u002Fprices — Gas prices across all chains\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fgas\u002Fprices\"\n```\n\n#### GET \u002Fv1\u002Fgas\u002Fsuggestion\u002F{chainId} — Recommended gas params for a chain\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fgas\u002Fsuggestion\u002F1\"\n```\n\n---\n\n## Guided Workflows\n\n### Workflow 1 — Swap or Bridge Tokens\n\nUse this for any \"swap X for Y\" or \"bridge tokens to chain\" request.\n\n1. **Identify parameters** from the user's request:\n   - Source chain and token (e.g., \"ETH on Ethereum\")\n   - Destination chain and token (e.g., \"USDC on Polygon\")\n   - Amount in human-readable form (e.g., \"1.5 ETH\")\n   - Wallet address (the agent's wallet or user-specified)\n\n2. **Look up token addresses** if the user gave symbols:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftoken?chain=1&token=USDC\"\n   ```\n   Extract `address` and `decimals` from the response.\n\n3. **Convert amount to smallest unit**:\n   - Multiply human amount by 10^decimals\n   - 1.5 ETH (18 decimals) → `1500000000000000000`\n   - 100 USDC (6 decimals) → `100000000`\n\n4. **Get a quote**:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote?fromChain=1&toChain=137&fromToken=0x0000000000000000000000000000000000000000&toToken=0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359&fromAddress=0xWALLET&fromAmount=1500000000000000000&slippage=0.03\"\n   ```\n\n5. **Present summary to user** (REQUIRED before returning tx data):\n   ```\n   Swap: 1.5 ETH (Ethereum) → ~2,850 USDC (Polygon)\n   Route: Stargate bridge → Uniswap V3\n   Fees: ~$2.50 (gas) + $0.50 (bridge)\n   Estimated time: ~2 minutes\n   Slippage: 3%\n   ```\n\n6. **If ERC20 token**: Check if the LiFi contract has sufficient allowance. The spender address is `transactionRequest.to` from the quote response. If allowance \u003C fromAmount, guide the user to approve the token first.\n\n7. **Return `transactionRequest`** for signing by the agent's wallet.\n\n8. **If cross-chain**: Explain that bridging is asynchronous — the source chain tx will confirm first, then the bridge delivers tokens to the destination. Offer to track with Workflow 3.\n\n### Workflow 2 — Compare Routes\n\nUse when the user wants to see options or find the best deal.\n\n1. **Gather parameters** (same as Workflow 1, steps 1-3).\n\n2. **Request multiple routes**:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002Froutes\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\n       \"fromChainId\": \"1\",\n       \"toChainId\": \"137\",\n       \"fromTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n       \"toTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n       \"fromAddress\": \"0xWALLET\",\n       \"fromAmount\": \"1000000000000000000\",\n       \"options\": {\"order\": \"RECOMMENDED\"}\n     }'\n   ```\n\n3. **Present comparison table**:\n   ```\n   #  Route                     Output       Fees     Time    Bridge\n   1  Stargate → Uniswap V3    2,850 USDC   $3.00    2 min   Stargate\n   2  Hop → SushiSwap          2,845 USDC   $2.80    5 min   Hop\n   3  Across → 1inch           2,848 USDC   $3.20    3 min   Across\n   ```\n\n4. **User picks a route**. Extract the chosen route's steps.\n\n5. **Get transaction data** for each step:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002FstepTransaction\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{ ...step object... }'\n   ```\n\n6. **Return `transactionRequest`** for signing.\n\n### Workflow 3 — Track a Transfer\n\nUse when the user wants to check status of a cross-chain transfer.\n\n1. **Get details from user**: transaction hash, source chain, destination chain.\n\n2. **Check status**:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fstatus?txHash=0xTX_HASH&fromChain=1&toChain=137\"\n   ```\n\n3. **Interpret and report status**:\n   - `NOT_FOUND` — Transaction not yet indexed. Wait a minute and retry.\n   - `PENDING` — Transfer in progress. Suggest polling every 30 seconds.\n   - `DONE` with substatus `COMPLETED` — Transfer complete. Report destination tx hash.\n   - `DONE` with substatus `PARTIAL` — User received the bridged token on the destination chain but NOT the final target token (e.g., got USDC.e instead of native USDC). The user may need to swap manually.\n   - `DONE` with substatus `REFUNDED` — Transfer failed and funds were returned to the source address.\n   - `FAILED` — Transfer failed. Report error details and advise the user to check the source chain tx on a block explorer.\n\n4. **If PENDING**: Offer to poll periodically. Wait 30 seconds between checks.\n\n### Workflow 4 — Zap (Contract Call Composition)\n\nUse for multi-step DeFi operations like \"bridge ETH to Polygon and deposit into Aave\" or \"swap to USDC and stake in a vault.\"\n\n1. **Understand the multi-step operation** — identify:\n   - Source chain\u002Ftoken\u002Famount\n   - Destination chain\u002Ftoken (the intermediate token before contract calls)\n   - Target contract and function to call on the destination\n\n2. **Gather contract call data**:\n   - `toContractAddress`: The destination contract (e.g., Aave lending pool)\n   - `toContractCallData`: ABI-encoded function call (e.g., `deposit(address,uint256,address,uint16)`)\n   - `toContractGasLimit`: Gas limit for the contract call (e.g., \"200000\")\n\n3. **Request zap quote**:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote\u002FcontractCalls\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\n       \"fromChain\": \"1\",\n       \"toChain\": \"137\",\n       \"fromToken\": \"0x0000000000000000000000000000000000000000\",\n       \"toToken\": \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n       \"fromAddress\": \"0xWALLET\",\n       \"fromAmount\": \"1000000000000000000\",\n       \"contractCalls\": [{\n         \"toContractAddress\": \"0xTARGET\",\n         \"toContractCallData\": \"0xENCODED_CALL\",\n         \"toContractGasLimit\": \"200000\"\n       }]\n     }'\n   ```\n\n4. **Present summary** showing all operations in the zap (bridge + swap + deposit\u002Fstake\u002Fetc.).\n\n5. **Return `transactionRequest`** for signing.\n\n### Workflow 5 — Discovery\n\nUse when the user asks \"what chains are supported?\", \"what tokens can I swap?\", \"what bridges are available?\", etc.\n\n1. **Determine what the user wants to know**:\n   - Supported chains → `GET \u002Fv1\u002Fchains`\n   - Tokens on a chain → `GET \u002Fv1\u002Ftokens?chains={chainId}`\n   - Token details → `GET \u002Fv1\u002Ftoken?chain={chainId}&token={symbol}`\n   - Available routes → `GET \u002Fv1\u002Fconnections?fromChain={id}&toChain={id}`\n   - Available bridges\u002FDEXes → `GET \u002Fv1\u002Ftools`\n   - Gas prices → `GET \u002Fv1\u002Fgas\u002Fprices` or `GET \u002Fv1\u002Fgas\u002Fsuggestion\u002F{chainId}`\n\n2. **Call the appropriate endpoint**.\n\n3. **Present results** in a readable table format. For large responses (e.g., all tokens), summarize the most relevant results and offer to filter further.\n\n---\n\n## Safety Protocol\n\nThese rules are **mandatory** — never skip them.\n\n### Address Validation\n- **ALWAYS** verify `fromAddress` is a valid hex address: starts with `0x`, 42 characters total, valid hex characters\n- **NEVER** send to the zero address (`0x0000000000000000000000000000000000000000`) as `toAddress` — this burns funds permanently. The zero address is ONLY valid as a `fromToken`\u002F`toToken` to represent native tokens.\n\n### Amount Validation\n- **ALWAYS** convert human-readable amounts to the token's smallest unit before calling the API\n  - Check the token's `decimals` field (ETH=18, USDC=6, WBTC=8, DAI=18)\n  - Formula: `amount_wei = human_amount × 10^decimals`\n- Amounts must be positive integers (no decimals, no negatives, no zero)\n- Maximum 78 digits (uint256 max)\n- If the user says \"1 ETH\", send `1000000000000000000`, NOT `1`\n\n### Slippage Validation\n- Default to `0.03` (3%) if the user doesn't specify\n- **WARN** the user if slippage > 3% — explain they may receive significantly fewer tokens\n- **REJECT** slippage > 50% (`0.5`) — this is almost certainly an error\n- Slippage must be between 0 and 1 (0% to 100%)\n\n### ERC20 Token Approvals\n- **ALWAYS** check token allowance before executing ERC20 swaps\n- If allowance \u003C fromAmount, guide the user to approve the token first\n- **NEVER** approve unlimited amounts (MaxUint256 \u002F `0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`) unless the user explicitly requests it — approve only the needed amount\n- The spender address is `transactionRequest.to` from the quote response\n\n### Transaction Presentation\n- **ALWAYS** present a human-readable summary before returning any `transactionRequest` data\n- The summary must include: tokens and amounts, route\u002Fbridge used, estimated fees, estimated time, slippage setting\n- **NEVER** return raw transaction data without explanation\n\n### Cross-Chain Safety\n- Explain that cross-chain bridges are **non-atomic** — funds may be in transit for minutes to hours\n- After submitting a source chain tx, always offer to track the transfer status\n- If a transfer shows `PARTIAL` status, explain the user received bridged tokens but not the final target token\n\n### No Route Found\n- If a quote returns no route: suggest trying different tokens, a smaller amount, or an alternative chain pair\n- Use `GET \u002Fv1\u002Fconnections` to verify the route is supported before retrying\n\n---\n\n## Error Handling\n\n| Error | Cause | Action |\n|-------|-------|--------|\n| HTTP 429 | Rate limited | Wait 30s, retry with exponential backoff (30s → 60s → 120s). Suggest user set `LIFI_API_KEY` for higher limits. |\n| No route found | Route unsupported or amount too small\u002Flarge | Check `\u002Fv1\u002Fconnections` for valid pairs. Suggest different tokens, smaller amount, or alternative chains. |\n| Slippage error | Price moved beyond tolerance | Increase slippage (e.g., 0.03 → 0.05) and retry. Warn user about the trade-off. |\n| Insufficient balance | Wallet lacks funds | Report the shortfall amount. Check balance with the agent's wallet tools. |\n| Transaction reverted | Price moved, liquidity drained, or gas too low | Explain possible causes. Suggest retrying with higher slippage or gas. |\n| PARTIAL completion | Bridge delivered token but not final swap | User has the bridged asset on the destination chain. They can swap it manually or retry. |\n| REFUNDED | Bridge failed, funds returned | Confirm refund on source chain. Suggest trying a different bridge via `allowBridges`. |\n| Invalid address | Malformed hex address | Verify address format: `0x` prefix, 42 characters, valid hex. |\n\n---\n\n## Chain Quick Reference\n\n| Chain | ID | Native Token |\n|-------|----|-------------|\n| Ethereum | 1 | ETH |\n| Polygon | 137 | MATIC |\n| Arbitrum One | 42161 | ETH |\n| Optimism | 10 | ETH |\n| BSC | 56 | BNB |\n| Base | 8453 | ETH |\n| Avalanche | 43114 | AVAX |\n| Fantom | 250 | FTM |\n| zkSync Era | 324 | ETH |\n| Gnosis | 100 | xDAI |\n| Scroll | 534352 | ETH |\n| Linea | 59144 | ETH |\n| Blast | 81457 | ETH |\n| Mode | 34443 | ETH |\n| Solana | 1151111081099710 | SOL |\n\nFor the full list of supported chains, call `GET \u002Fv1\u002Fchains`.\n\nNative token address on all EVM chains: `0x0000000000000000000000000000000000000000`\n","# \u002Flifi — Cross-Chain Swaps & Bridges\n\nLI.FI is a cross-chain bridge and DEX aggregation protocol. It finds optimal routes across 35+ blockchains, comparing dozens of bridges (Stargate, Hop, Across, etc.) and DEXes (Uniswap, SushiSwap, 1inch, etc.) to execute token swaps and cross-chain transfers.\n\n## Arguments: `$ARGUMENTS`\n\nParse the arguments:\n- **First positional arg**: Action — `swap`, `bridge`, `track`, `routes`, `zap`, or a natural language request\n- **Remaining args**: Details (token names, amounts, chains, tx hashes, etc.)\n\nIf no arguments are provided, ask the user what they want to do.\n\n## Key Concepts\n\n- **Base URL**: `https:\u002F\u002Fli.quest\u002Fv1`\n- The API returns `transactionRequest` objects (to, data, value, gasLimit, gasPrice) ready to sign — provide these to the agent's wallet\n- **Native token address**: `0x0000000000000000000000000000000000000000` (for ETH, MATIC, BNB, etc.)\n- Amounts are always in the token's **smallest unit** (wei): 1 ETH = `1000000000000000000` (18 decimals), 1 USDC = `1000000` (6 decimals)\n- Optional API key via `x-lifi-api-key` header for higher rate limits (not required)\n\n---\n\n## API Reference\n\n### Discovery Endpoints\n\n#### GET \u002Fv1\u002Fchains — List supported blockchains\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fchains\"\n# Optional: ?chainTypes=EVM or ?chainTypes=SVM\n```\n\n#### GET \u002Fv1\u002Ftokens — List supported tokens\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftokens?chains=1,137\"\n# Optional: chainTypes, minPriceUSD\n```\n\n#### GET \u002Fv1\u002Ftoken — Get specific token details\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftoken?chain=1&token=USDC\"\n# chain (required): chain ID or name. token (required): address or symbol\n```\n\n#### GET \u002Fv1\u002Fconnections — Check available swap routes\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fconnections?fromChain=1&toChain=137&fromToken=0x0000000000000000000000000000000000000000\"\n# Optional: toToken, chainTypes, allowBridges\n```\n\n#### GET \u002Fv1\u002Ftools — List available bridges and DEXes\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftools\"\n# Returns {bridges: [{key, name}], exchanges: [{key, name}]}\n```\n\n### Quote & Swap Endpoints\n\n#### GET \u002Fv1\u002Fquote — Get optimal route + transaction data\nThe primary endpoint for initiating any swap or bridge.\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote?\\\nfromChain=1&toChain=137\\\n&fromToken=0x0000000000000000000000000000000000000000\\\n&toToken=0x0000000000000000000000000000000000000000\\\n&fromAddress=0xYOUR_WALLET\\\n&fromAmount=1000000000000000000\\\n&slippage=0.03\"\n```\n**Required**: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount\n**Optional**: toAddress, slippage (decimal, e.g. 0.03 = 3%), integrator, order (RECOMMENDED|FASTEST|CHEAPEST|SAFEST), allowBridges, allowExchanges\n\nReturns: `action`, `estimate` (toAmount, fees, executionDuration), and `transactionRequest` (to, data, value, gasLimit).\n\n#### GET \u002Fv1\u002Fstatus — Track cross-chain transfer\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fstatus?txHash=0xTX_HASH\"\n# Optional: bridge, fromChain, toChain\n```\nReturns: `status` (NOT_FOUND, PENDING, DONE, FAILED), `substatus` (COMPLETED, PARTIAL, REFUNDED), source\u002Fdestination tx details.\n\n### Advanced Routing\n\n#### POST \u002Fv1\u002Fadvanced\u002Froutes — Compare multiple route options\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002Froutes\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"fromChainId\": \"1\",\n    \"toChainId\": \"137\",\n    \"fromTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n    \"toTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n    \"fromAddress\": \"0xYOUR_WALLET\",\n    \"fromAmount\": \"1000000000000000000\",\n    \"options\": {\"order\": \"RECOMMENDED\"}\n  }'\n```\n**Required**: fromChainId, toChainId, fromTokenAddress, toTokenAddress, fromAddress, fromAmount\n**Optional**: toAddress, slippage, options.order\n\nReturns: `routes[]` array — each route has steps, estimated output, fees, and execution time.\n\n#### POST \u002Fv1\u002Fadvanced\u002FstepTransaction — Get tx data for a route step\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002FstepTransaction\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ ...step object from routes response... }'\n```\nPass the entire step object from a route. Returns `transactionRequest` ready to sign.\n\n#### POST \u002Fv1\u002Fquote\u002FcontractCalls — Zaps (multi-action DeFi composition)\n```bash\ncurl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote\u002FcontractCalls\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"fromChain\": \"1\",\n    \"toChain\": \"137\",\n    \"fromToken\": \"0x0000000000000000000000000000000000000000\",\n    \"toToken\": \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n    \"fromAddress\": \"0xYOUR_WALLET\",\n    \"fromAmount\": \"1000000000000000000\",\n    \"contractCalls\": [\n      {\n        \"toContractAddress\": \"0xTARGET_CONTRACT\",\n        \"toContractCallData\": \"0xENCODED_FUNCTION_CALL\",\n        \"toContractGasLimit\": \"200000\"\n      }\n    ]\n  }'\n```\n**Required**: fromChain, toChain, fromToken, toToken, fromAddress, fromAmount, contractCalls[]\n**Optional**: slippage\n\n### Gas Information\n\n#### GET \u002Fv1\u002Fgas\u002Fprices — Gas prices across all chains\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fgas\u002Fprices\"\n```\n\n#### GET \u002Fv1\u002Fgas\u002Fsuggestion\u002F{chainId} — Recommended gas params for a chain\n```bash\ncurl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fgas\u002Fsuggestion\u002F1\"\n```\n\n---\n\n## Guided Workflows\n\n### Workflow 1 — Swap or Bridge Tokens\n\nUse this for any \"swap X for Y\" or \"bridge tokens to chain\" request.\n\n1. **Identify parameters** from the user's request:\n   - Source chain and token (e.g., \"ETH on Ethereum\")\n   - Destination chain and token (e.g., \"USDC on Polygon\")\n   - Amount in human-readable form (e.g., \"1.5 ETH\")\n   - Wallet address (the agent's wallet or user-specified)\n\n2. **Look up token addresses** if the user gave symbols:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Ftoken?chain=1&token=USDC\"\n   ```\n   Extract `address` and `decimals` from the response.\n\n3. **Convert amount to smallest unit**:\n   - Multiply human amount by 10^decimals\n   - 1.5 ETH (18 decimals) → `1500000000000000000`\n   - 100 USDC (6 decimals) → `100000000`\n\n4. **Get a quote**:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote?fromChain=1&toChain=137&fromToken=0x0000000000000000000000000000000000000000&toToken=0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359&fromAddress=0xWALLET&fromAmount=1500000000000000000&slippage=0.03\"\n   ```\n\n5. **Present summary to user** (REQUIRED before returning tx data):\n   ```\n   Swap: 1.5 ETH (Ethereum) → ~2,850 USDC (Polygon)\n   Route: Stargate bridge → Uniswap V3\n   Fees: ~$2.50 (gas) + $0.50 (bridge)\n   Estimated time: ~2 minutes\n   Slippage: 3%\n   ```\n\n6. **If ERC20 token**: Check if the LiFi contract has sufficient allowance. The spender address is `transactionRequest.to` from the quote response. If allowance \u003C fromAmount, guide the user to approve the token first.\n\n7. **Return `transactionRequest`** for signing by the agent's wallet.\n\n8. **If cross-chain**: Explain that bridging is asynchronous — the source chain tx will confirm first, then the bridge delivers tokens to the destination. Offer to track with Workflow 3.\n\n### Workflow 2 — Compare Routes\n\nUse when the user wants to see options or find the best deal.\n\n1. **Gather parameters** (same as Workflow 1, steps 1-3).\n\n2. **Request multiple routes**:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002Froutes\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\n       \"fromChainId\": \"1\",\n       \"toChainId\": \"137\",\n       \"fromTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n       \"toTokenAddress\": \"0x0000000000000000000000000000000000000000\",\n       \"fromAddress\": \"0xWALLET\",\n       \"fromAmount\": \"1000000000000000000\",\n       \"options\": {\"order\": \"RECOMMENDED\"}\n     }'\n   ```\n\n3. **Present comparison table**:\n   ```\n   #  Route                     Output       Fees     Time    Bridge\n   1  Stargate → Uniswap V3    2,850 USDC   $3.00    2 min   Stargate\n   2  Hop → SushiSwap          2,845 USDC   $2.80    5 min   Hop\n   3  Across → 1inch           2,848 USDC   $3.20    3 min   Across\n   ```\n\n4. **User picks a route**. Extract the chosen route's steps.\n\n5. **Get transaction data** for each step:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fadvanced\u002FstepTransaction\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{ ...step object... }'\n   ```\n\n6. **Return `transactionRequest`** for signing.\n\n### Workflow 3 — Track a Transfer\n\nUse when the user wants to check status of a cross-chain transfer.\n\n1. **Get details from user**: transaction hash, source chain, destination chain.\n\n2. **Check status**:\n   ```bash\n   curl -s \"https:\u002F\u002Fli.quest\u002Fv1\u002Fstatus?txHash=0xTX_HASH&fromChain=1&toChain=137\"\n   ```\n\n3. **Interpret and report status**:\n   - `NOT_FOUND` — Transaction not yet indexed. Wait a minute and retry.\n   - `PENDING` — Transfer in progress. Suggest polling every 30 seconds.\n   - `DONE` with substatus `COMPLETED` — Transfer complete. Report destination tx hash.\n   - `DONE` with substatus `PARTIAL` — User received the bridged token on the destination chain but NOT the final target token (e.g., got USDC.e instead of native USDC). The user may need to swap manually.\n   - `DONE` with substatus `REFUNDED` — Transfer failed and funds were returned to the source address.\n   - `FAILED` — Transfer failed. Report error details and advise the user to check the source chain tx on a block explorer.\n\n4. **If PENDING**: Offer to poll periodically. Wait 30 seconds between checks.\n\n### Workflow 4 — Zap (Contract Call Composition)\n\nUse for multi-step DeFi operations like \"bridge ETH to Polygon and deposit into Aave\" or \"swap to USDC and stake in a vault.\"\n\n1. **Understand the multi-step operation** — identify:\n   - Source chain\u002Ftoken\u002Famount\n   - Destination chain\u002Ftoken (the intermediate token before contract calls)\n   - Target contract and function to call on the destination\n\n2. **Gather contract call data**:\n   - `toContractAddress`: The destination contract (e.g., Aave lending pool)\n   - `toContractCallData`: ABI-encoded function call (e.g., `deposit(address,uint256,address,uint16)`)\n   - `toContractGasLimit`: Gas limit for the contract call (e.g., \"200000\")\n\n3. **Request zap quote**:\n   ```bash\n   curl -s -X POST \"https:\u002F\u002Fli.quest\u002Fv1\u002Fquote\u002FcontractCalls\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     -d '{\n       \"fromChain\": \"1\",\n       \"toChain\": \"137\",\n       \"fromToken\": \"0x0000000000000000000000000000000000000000\",\n       \"toToken\": \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n       \"fromAddress\": \"0xWALLET\",\n       \"fromAmount\": \"1000000000000000000\",\n       \"contractCalls\": [{\n         \"toContractAddress\": \"0xTARGET\",\n         \"toContractCallData\": \"0xENCODED_CALL\",\n         \"toContractGasLimit\": \"200000\"\n       }]\n     }'\n   ```\n\n4. **Present summary** showing all operations in the zap (bridge + swap + deposit\u002Fstake\u002Fetc.).\n\n5. **Return `transactionRequest`** for signing.\n\n### Workflow 5 — Discovery\n\nUse when the user asks \"what chains are supported?\", \"what tokens can I swap?\", \"what bridges are available?\", etc.\n\n1. **Determine what the user wants to know**:\n   - Supported chains → `GET \u002Fv1\u002Fchains`\n   - Tokens on a chain → `GET \u002Fv1\u002Ftokens?chains={chainId}`\n   - Token details → `GET \u002Fv1\u002Ftoken?chain={chainId}&token={symbol}`\n   - Available routes → `GET \u002Fv1\u002Fconnections?fromChain={id}&toChain={id}`\n   - Available bridges\u002FDEXes → `GET \u002Fv1\u002Ftools`\n   - Gas prices → `GET \u002Fv1\u002Fgas\u002Fprices` or `GET \u002Fv1\u002Fgas\u002Fsuggestion\u002F{chainId}`\n\n2. **Call the appropriate endpoint**.\n\n3. **Present results** in a readable table format. For large responses (e.g., all tokens), summarize the most relevant results and offer to filter further.\n\n---\n\n## Safety Protocol\n\nThese rules are **mandatory** — never skip them.\n\n### Address Validation\n- **ALWAYS** verify `fromAddress` is a valid hex address: starts with `0x`, 42 characters total, valid hex characters\n- **NEVER** send to the zero address (`0x0000000000000000000000000000000000000000`) as `toAddress` — this burns funds permanently. The zero address is ONLY valid as a `fromToken`\u002F`toToken` to represent native tokens.\n\n### Amount Validation\n- **ALWAYS** convert human-readable amounts to the token's smallest unit before calling the API\n  - Check the token's `decimals` field (ETH=18, USDC=6, WBTC=8, DAI=18)\n  - Formula: `amount_wei = human_amount × 10^decimals`\n- Amounts must be positive integers (no decimals, no negatives, no zero)\n- Maximum 78 digits (uint256 max)\n- If the user says \"1 ETH\", send `1000000000000000000`, NOT `1`\n\n### Slippage Validation\n- Default to `0.03` (3%) if the user doesn't specify\n- **WARN** the user if slippage > 3% — explain they may receive significantly fewer tokens\n- **REJECT** slippage > 50% (`0.5`) — this is almost certainly an error\n- Slippage must be between 0 and 1 (0% to 100%)\n\n### ERC20 Token Approvals\n- **ALWAYS** check token allowance before executing ERC20 swaps\n- If allowance \u003C fromAmount, guide the user to approve the token first\n- **NEVER** approve unlimited amounts (MaxUint256 \u002F `0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`) unless the user explicitly requests it — approve only the needed amount\n- The spender address is `transactionRequest.to` from the quote response\n\n### Transaction Presentation\n- **ALWAYS** present a human-readable summary before returning any `transactionRequest` data\n- The summary must include: tokens and amounts, route\u002Fbridge used, estimated fees, estimated time, slippage setting\n- **NEVER** return raw transaction data without explanation\n\n### Cross-Chain Safety\n- Explain that cross-chain bridges are **non-atomic** — funds may be in transit for minutes to hours\n- After submitting a source chain tx, always offer to track the transfer status\n- If a transfer shows `PARTIAL` status, explain the user received bridged tokens but not the final target token\n\n### No Route Found\n- If a quote returns no route: suggest trying different tokens, a smaller amount, or an alternative chain pair\n- Use `GET \u002Fv1\u002Fconnections` to verify the route is supported before retrying\n\n---\n\n## Error Handling\n\n| Error | Cause | Action |\n|-------|-------|--------|\n| HTTP 429 | Rate limited | Wait 30s, retry with exponential backoff (30s → 60s → 120s). Suggest user set `LIFI_API_KEY` for higher limits. |\n| No route found | Route unsupported or amount too small\u002Flarge | Check `\u002Fv1\u002Fconnections` for valid pairs. Suggest different tokens, smaller amount, or alternative chains. |\n| Slippage error | Price moved beyond tolerance | Increase slippage (e.g., 0.03 → 0.05) and retry. Warn user about the trade-off. |\n| Insufficient balance | Wallet lacks funds | Report the shortfall amount. Check balance with the agent's wallet tools. |\n| Transaction reverted | Price moved, liquidity drained, or gas too low | Explain possible causes. Suggest retrying with higher slippage or gas. |\n| PARTIAL completion | Bridge delivered token but not final swap | User has the bridged asset on the destination chain. They can swap it manually or retry. |\n| REFUNDED | Bridge failed, funds returned | Confirm refund on source chain. Suggest trying a different bridge via `allowBridges`. |\n| Invalid address | Malformed hex address | Verify address format: `0x` prefix, 42 characters, valid hex. |\n\n---\n\n## Chain Quick Reference\n\n| Chain | ID | Native Token |\n|-------|----|-------------|\n| Ethereum | 1 | ETH |\n| Polygon | 137 | MATIC |\n| Arbitrum One | 42161 | ETH |\n| Optimism | 10 | ETH |\n| BSC | 56 | BNB |\n| Base | 8453 | ETH |\n| Avalanche | 43114 | AVAX |\n| Fantom | 250 | FTM |\n| zkSync Era | 324 | ETH |\n| Gnosis | 100 | xDAI |\n| Scroll | 534352 | ETH |\n| Linea | 59144 | ETH |\n| Blast | 81457 | ETH |\n| Mode | 34443 | ETH |\n| Solana | 1151111081099710 | SOL |\n\nFor the full list of supported chains, call `GET \u002Fv1\u002Fchains`.\n\nNative token address on all EVM chains: `0x0000000000000000000000000000000000000000`\n",{"name":5,"metadata":24,"description":7,"argument-hint":31,"user-invocable":32},{"openclaw":25},{"emoji":26,"requires":27,"primaryEnv":30},"🔗",{"bins":28},[29],"curl","LIFI_API_KEY","[swap|bridge|track|routes|zap] \u003Cdetails>",true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fl\u002Flifi-crosschain",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":32},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill lifi",{"tool":48,"command":49},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill lifi",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill lifi","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fl\u002Flifi-crosschain\u002FSKILL.md",[],[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]