कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

lifi-skill

fabriziogianni7 द्वारा

Browser & Automation
2.5kclawskills.sh द्वारा बताए गए डाउनलोड
3स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

v4 - Use LI.FI API for cross-chain and same-chain swaps, bridges, and contract calls.

विवरण

यह स्किल क्या करती है

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.

इसे कब इस्तेमाल करें

  • 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

उदाहरण वर्कफ़्लो

इनपुट

User asks: swap 0.001 ETH for USDC on Base

एजेंट
  1. 1

    Fetch wallet address using defi_get_wallet

  2. 2

    Call GET /v1/quote with fromChain=8453, toChain=8453, fromToken=ETH, toToken=USDC, fromAmount in wei, slippage=0.10, skipSimulation=true

  3. 3

    Present estimated output amount, fees, and slippage to user

  4. 4

    Check if ERC-20 approval is needed based on transactionRequest.value and estimate.approvalAddress

  5. 5

    Execute 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

आवश्यकताएँ

  • LIFI_API_KEY environment variable

इंस्टॉलेशन

clawhub install fabriziogianni7/lifi-skill

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक