मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)7.0k · #13640

lifi

यह क्या करती है

यह स्किल LI.FI API को कवर करती है, जो 75 से ज़्यादा ब्लॉकचेन पर टोकन स्वैप और ब्रिज संभालती है। इसमें DeFi जमा, यील्ड डेटा और intent-आधारित ऑर्डर भी शामिल हैं, उन डेवलपर्स के लिए जो अपने ऐप में चेन पार स्वैप या यील्ड फ़ीचर जोड़ते हैं।

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

  • ✓जब कोई उपयोगकर्ता दो अलग-अलग ब्लॉकचेन के बीच टोकन स्वैप करना चाहे।
  • ✓जब कोई उपयोगकर्ता टोकन को किसी दूसरी चेन पर ले जाना चाहे।
  • ✓जब आप यील्ड वाले vaults ढूंढना या किसी DeFi प्रोटोकॉल में जमा करना चाहते हों।

Skill का लिंक

https://github.com/internet-court/internet-court-skill/blob/main/vendored/lifi/lifi/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

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

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/internet-court/internet-court-skill/blob/main/vendored/lifi/lifi/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं चाहता हूँ कि मेरे उपयोगकर्ता मेरे ऐप के अंदर से Ethereum पर USDC को Arbitrum पर ETH में स्वैप कर सकें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट कोट और रूट लेने के लिए LI.FI API कॉल करता है, फिर execution डेटा इस्तेमाल करता है और ट्रांसफ़र पूरा होने तक स्थिति जाँचता है। एक वैकल्पिक API कुंजी रेट लिमिट बढ़ाती है और उसे अनुरोध हेडर में भेजा जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

LI.FI API Integration

LI.FI aggregates bridges, DEXs, intent solvers, and DeFi protocols behind one API. This skill covers the full product surface:

Product Base URL What it does
Core API (swaps & bridges) https://li.quest/v1 Quotes, routes, execution data, status tracking across 75+ chains
Composer (DeFi execution) https://li.quest/v1 (same /quote endpoint) One-click swap/bridge + deposit/withdraw into vaults, lending, staking
Earn (yield data) https://earn.li.fi/v1 Vault discovery, APY/TVL analytics, portfolio positions
Intents (solver marketplace) https://order.li.fi Intent-based orders filled by a competitive solver network

For AI agents, LI.FI also offers an MCP server (https://mcp.li.quest/mcp) and a CLI (@lifi/cli). LI.FI recommends agents and backends use the REST API directly rather than the SDK.

Authentication & Rate Limits

API key is optional — it only raises rate limits. Header: x-lifi-api-key (get one at the LI.FI Partner Portal).

curl "https://li.quest/v1/chains" -H "x-lifi-api-key: YOUR_API_KEY"
Tier /quote, /advanced/routes /advanced/stepTransaction Other endpoints
Without API key 75 req / 2 hours 50 req / 2 hours 100 req / minute
With API key (default) 100 RPM (2-hour rolling window: 12,000 / 2h) same 100 RPM

Responses include ratelimit-limit, ratelimit-remaining, ratelimit-reset (seconds) headers. 429 responses carry error code 1005. Never expose your API key in client-side code.

Quick Start — The Five-Call Recipe

The canonical flow for any swap/bridge:

1. GET /chains   → discover chains (id, key, chainType, nativeToken)
2. GET /tokens   → find tokens & decimals (?chains=1,42161)
3. GET /quote    → get quote with ready-to-sign transactionRequest
4. [Execute]     → if ERC-20: check allowance vs estimate.approvalAddress, approve if needed;
                   then sign & send transactionRequest
5. GET /status   → poll until DONE or FAILED
# 3. Quote (fromToken/toToken accept addresses OR symbols)
curl "https://li.quest/v1/quote?\
fromChain=42161&toChain=10&\
fromToken=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&\
toToken=0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1&\
fromAmount=10000000&fromAddress=0xYourAddress&slippage=0.005"

# 5. Status (pass fromChain to speed it up; bridge = quote's `tool`)
curl "https://li.quest/v1/status?txHash=0xYourTxHash&fromChain=42161&toChain=10&bridge=across"

From the quote response, extract: transactionRequest (sign & send), estimate.approvalAddress (ERC-20 spender), estimate.toAmount/toAmountMin, estimate.executionDuration (basis for polling), and tool (pass as bridge to /status). Quotes go stale in ~60 seconds — re-fetch before signing if older (and always after a separate approval tx).

Core Endpoints

GET /quote

Single best route with transaction data ready for execution.

Parameter Type Required Description
fromChain / toChain string Yes Chain ID or key (same value = same-chain swap)
fromToken / toToken string Yes Token address or symbol
fromAmount string Yes Amount in smallest unit
fromAddress string Yes Sender wallet address
toAddress string No Recipient (defaults to fromAddress)
slippage number No 0.005 = 0.5% (default)
order string No FASTEST or CHEAPEST
integrator string No Your app ID (analytics + fee collection)
fee number No Integrator fee (0.02 = 2%)
preset string No Routing preset, e.g. stablecoin (see below)
allowBridges / denyBridges / preferBridges string[] No Tool keys from /tools, or all/none/default
allowExchanges / denyExchanges / preferExchanges string[] No Same
allowDestinationCall boolean No Default true
maxPriceImpact number No Default 0.10 (10%)
fromAmountForGas string No Amount converted to gas on destination
skipSimulation boolean No Faster response, less accurate gas limit
svmPriorityFeeLevel string No Solana priority fee: NORMAL/FAST/ULTRA
swapStepTimingStrategies / routeTimingStrategies string[] No e.g
अक्सर पूछे जाने वाले सवाल

क्या मुझे API कुंजी चाहिए?

नहीं, यह वैकल्पिक है। कुंजी केवल आपकी रेट लिमिट बढ़ाती है।

क्या AI एजेंट इसे टूल के ज़रिए इस्तेमाल कर सकता है?

हाँ। LI.FI एक MCP सर्वर और CLI देता है, लेकिन स्किल REST API को सीधे कॉल करने की सलाह देती है।

Earn में क्या कवर होता है?

Earn में vault खोज, APY और TVL डेटा, और पोर्टफ़ोलियो पोज़िशन शामिल हैं।

जानकारी

लेखक का मूल विवरण

LI.FI REST API for cross-chain and same-chain token swaps, bridging, DeFi deposits (Composer), yield discovery (Earn), and intent-based execution (Intents). USE THIS SKILL WHEN USER WANTS TO: - Swap tokens between different blockchains (e.g., "swap USDC on Ethereum to ETH on Arbitrum") - Bridge tokens to another chain (e.g., "move my ETH from mainnet to Optimism") - Swap tokens on the same chain with best rates (e.g., "swap ETH to USDC on Polygon") - Find the best route or quote for a token swap across chains - Deposit into DeFi vaults/lending/staking in one click, including cross-chain (Compo

repo: internet-court/internet-court-skill

लोकप्रियता

GitHub स्टार
7.0k
रैंकिंग में स्थान
#13640
लाइसेंस
—
अपडेट की गई
26/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

internet-court

7.0k

यह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।

AI और एजेंटएजेंट

genlayer-erc7710-connector

7.0k

यह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।

AI और एजेंटएजेंट

genlayer-intelligent-contracts

7.0k

यह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।

AI और एजेंटएजेंट

x402-erc7710

7.0k

यह आपके एजेंट को हर अनुरोध पर वेब सेवा का भुगतान करने और तय सीमा के भीतर लगातार खर्च करने की व्यवस्था में मदद करती है।

AI और एजेंटएजेंट

मिलती-जुलती skills