LI.FI — the ultimate cross-chain aggregator, connects the most important bridges to DEXs and DEX aggregators on various chains to allow for seamless any-2-any swaps across the whole ecosystem. Now we have an SDK for you!
The LI.FI SDK is finally available!
LI.FI’s Javascript/Typescript SDK enables your dApp to execute any-2-any swaps with liquidity from a pool of the most popular cross-chain networks and protocols. Ready to get started?!
It’s as simple as npm i --save @lifinance/sdk
or yarn add @lifinance/sdk
.
You can also check out our github sample repo to see a demo of LI.FI in action.
If you want to learn more, you can jump into our docs or read through our open source codebase on github.
Here’s a list of reasons why you should be using our SDK:
To enable your users to swap from any asset on any chain to any asset on their preferred chain when you integrate our SDK.
To streamline your UX by enabling cross-chain transactions without requiring your users to leave your dApp.
To avoid complex configurations.
To avoid swapping manually on exchanges.
Your users can leave everything to you — and you can leave the rest to LI.FI.
We are a mesh of aggregated cross-chain liquidity networks and protocols that empowers dApps to make cross-chain swaps from any asset to any asset, on any chain.
Think of LI.FI as the 1inch of cross-chain liquidity networks. Just install our SDK and gain access to Connext, Harmony, Biconomy, UMA, Hop, Thorchain, Multichain, Ren, Synapse, Across, RouterProtocol, and more. Here’s a full list of who we have integrated, and who we plan to integrate in the future.
LI.FI is a one-stop solution for your dApp’s interoperability
While our SDK is perfect for anyone creating dApps that need to source cross-chain liquidity for swaps and transactions, we’ve built our protocol to especially benefit the following people:
DeFi Portfolio Managers — Your users need flexibility when moving and acquiring assets. Our SDK’s cross-chain liquidity aggregation enables them to make any-2-any swaps.
Yield Farming Protocols — Sometimes maximizing yields requires swapping assets across multiple chains as fast as possible. Our SDK is optimized to find and offer the best trading routes across multiple chains. This allows users to move assets across chains quickly and optimize their returns.
NFT Marketplaces — Imagine allowing sellers to accept payment for their preferred token even if the buyer doesn’t pay in that token. Our SDK will empower your users to make transactions without concern for which currency they’re using.
Payroll Management Solutions — Payroll payments should be as free and flexible as all other payments in crypto, and LI.FI empowers you to compensate employees in any token you want with quick, efficient swaps.
dApp Developers — Your users can pay you in whatever token you want, even if they don’t have it, with the power of LI.FISDK.
DeFi Lending Protocols — Providing cross-chain liquidity through lending is as simple as installing LI.FI SDK. Your users will be able to swap any asset for any other at optimized rates.
Our SDK will continue to grow as we build out more features! Our current codebase supports:
Requesting service data — Get information about the available tokens, chains, bridges, exchanges, and liquidity that you can access with Li Finance.
Find the best routes — Get a list of the best trade routes for swapping assets, curated by our API’s algorithm.
Execute a route — Initiate a swap using LI.FI’s protocol, from any chain to any chain. Pass a signer to the SDK’s executeRoute
helper function, and the transactions required to execute the swap will be created and signed. Any other actions required to create the transaction will be handled as well.
Here’s how you can get started with our SDK — Head over to our docs to see examples, or install our npm package and start playing around.
native any-2-any swaps on the best routes
Check out our Demo here.
Need to talk to us? We’re ready to help you integrate LI.FI into your DeFi projects today! You can jump in our discord to talk to us immediately or join our developer waiting list for future updates.
Enjoyed reading our research? To learn more about us:
Disclaimer: This article is only meant for informational purposes. The projects mentioned in the article are our partners, but we encourage you to do your due diligence before using or buying tokens of any protocol mentioned. This is not financial advice.