Overview
LI.FI provides cross-chain swaps and bridging across 58 blockchains (EVM, Solana, Bitcoin, SUI), aggregating 27 bridges and 31 exchanges. This page is designed as the entry point for AI agents that need to execute token transfers, check transaction status, or query supported chains and tokens.Machine-readable resources:
- llms.txt - Structured overview for LLM consumption
- OpenAPI Spec - Full API specification
- AI Plugin - Standard discovery format
When to Use What
| Use Case | Recommended | Why |
|---|---|---|
| Execute transfers from backend | API | Direct HTTP calls, full control |
| Build frontend with swaps | SDK | Handles wallets, signing, execution |
| Embed ready-made UI | Widget | Zero-code, instant deployment |
| AI agent integration | API | Simple HTTP, no dependencies |
Minimal Endpoint Set
These 5 endpoints cover most agent use cases:1. Get a Quote
Returns a ready-to-execute transaction for transferring tokens.fromChain- Source chain ID (e.g.,1for Ethereum)toChain- Destination chain ID (e.g.,42161for Arbitrum)fromToken- Token symbol or addresstoToken- Token symbol or addressfromAmount- Amount in smallest unit (wei)fromAddress- Sender wallet address
transactionRequest ready for signing.
Full Quote Documentation
See all parameters and response schema
2. Check Transfer Status
Poll this endpoint to track cross-chain transfer progress.txHash- Transaction hash from the source chain
fromChain- Source chain IDtoChain- Destination chain IDbridge- Bridge name from the quote (e.g.,stargate)
status field: NOT_FOUND, PENDING, DONE, or FAILED.
Full Status Documentation
See all status values and substatus details
3. List Supported Chains
Get all chains LI.FI supports.chainTypes- Filter by type:EVM,SVM,UTXO,MVM
id, key, name, chainType.
4. List Supported Tokens
Get tokens available for a specific chain.chains- Comma-separated chain IDs
address, symbol, decimals.
5. List Available Tools
Get bridges and DEXs available for routing.bridges and exchanges arrays, each containing key, name, and supportedChains.
Decision Rules
Choosing Between Quote and Routes
- Use
/quotefor simple transfers - returns single best route with transaction data - Use
/advanced/routeswhen you need multiple options or complex multi-step transfers
Handling Status Responses
Error Handling
- Rate limited (429): Back off and retry with exponential delay
- No route found: Try different token pairs or reduce amount
- Insufficient balance: Verify user has enough tokens + gas
- Slippage exceeded: Increase
slippageparameter (default: 0.005)
Common Chain IDs
| Chain | ID | Key |
|---|---|---|
| Ethereum | 1 | eth |
| Arbitrum | 42161 | arb |
| Optimism | 10 | opt |
| Base | 8453 | bas |
| Polygon | 137 | pol |
| BSC | 56 | bsc |
| Avalanche | 43114 | ava |
| Solana | 1151111081099710 | sol |
Common Token Addresses
| Token | Ethereum | Arbitrum | Base |
|---|---|---|---|
| USDC | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| USDT | 0xdAC17F958D2ee523a2206206994597C13D831ec7 | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 | - |
| WETH | 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 | 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 | 0x4200000000000000000000000000000000000006 |

