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

lifi-crosschain

rhlsthrm द्वारा

AI & LLMs
424clawskills.sh द्वारा बताए गए डाउनलोड
2स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Cross-chain token swaps and bridges via the LI.FI protocol.

विवरण

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

Connects to the LI.FI protocol API to find and execute token swaps and cross-chain transfers across 35+ blockchains. Handles quote fetching, route comparison across bridges and DEXes, and returns transaction data ready to sign. Also supports multi-step DeFi compositions (zaps) and transfer status tracking.

Aggregates dozens of bridges and DEXes in a single API call, so finding the best cross-chain route does not require checking each protocol manually.

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

  • Bridge ETH from Ethereum to Polygon
  • Find the cheapest route for a cross-chain token swap
  • Track a pending cross-chain transfer by transaction hash
  • Compare bridge options by cost, speed, and estimated output
  • Bridge and deposit into a DeFi protocol in one transaction

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

इनपुट

User asks: bridge 1.5 ETH from Ethereum to USDC on Polygon

एजेंट
  1. 1

    Look up USDC token details on Polygon to get its contract address and decimal places

  2. 2

    Convert 1.5 ETH to wei: 1500000000000000000

  3. 3

    Call GET /v1/quote with fromChain=1, toChain=137, native ETH as fromToken, USDC as toToken, and amount in wei

  4. 4

    Present a summary showing estimated USDC output, bridge route, fees, slippage, and estimated time

  5. 5

    Return the transactionRequest object for the user's wallet to sign

आउटपुट

Transaction data for a Stargate bridge route delivering approximately 2,850 USDC to the user's Polygon wallet in about 2 minutes

आवश्यकताएँ

  • LIFI_API_KEY environment variable (optional, increases API rate limits)

इंस्टॉलेशन

clawhub install rhlsthrm/lifi-crosschain

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

लिंक