1Inch now Integrated with Router Protocol’s Path Finder Algorithm

Router Protocol
3 min readJun 20, 2022

--

At Router Protocol, we are obsessed with only one goal; making the act of connecting different blockchain networks as seamless as possible. So while cross-chain swaps on our mainnet are done in under 2 minutes through an intuitive UI, the technical architecture beneath them is quite complex.

And this architecture just got a major upgrade!

One of the core competencies of Router Protocol is that it always finds the most optimal path to transfer/swap assets across blockchain networks. This is facilitated by our secret sauce: The Pathfinder Algorithm.

The Pathfinder Algorithm achieves this by integrating individual DEXes and connecting the best quotes across them. To increase its capabilities and provide an even more seamless experience, with great support from its team, the Pathfinder Algorithm has now integrated 1Inch to make DEX aggregation better.

1inch API is a non-custodial DEX aggregator that finds the most efficient token swap paths, splitting swaps between different protocols and even different market depths within one protocol.

With 1inch API, the Pathfinder Algorithm will get access to 53 liquidity sources on Ethereum and 24 liquidity sources on BSC. It would also discover the most efficient path for token swaps, enabling splits between different protocols in a bid to get the best prices. Moreover, with the 1inch API, the response time is also reduced to below 400ms, making it one of. the fastest in Web 3.0.

With these transcendental capabilities, it would not be a stretch to say that the Pathfinder Algorithm is stronger and more dynamic than it ever was.

With the Router Asset Swap API, you can now call the Pathfinder algorithm to conduct cross-chain transfers on your platform which will leverage 1Inch in quote discovery.

Here’s a brief three-step process to get started for developers. You can find the specific documentation links at the end of every step.

Step 1: Request a Quote

Enter the correct parameters, including the fee token and blockchain networks, to allow the Pathfinder API to return a path.

https://dev.routerprotocol.com/pathfinder-api/performing-a-cross-chain-transaction/request-a-quote

Step 2: Check and Set the Allowance

Before you initiate any transaction using a Web3 library, provide Router’s Reserve Token Handler the permission to use the requested asset in their wallet

https://dev.routerprotocol.com/pathfinder-api/performing-a-cross-chain-transaction/check-and-set-the-allowance

Step 3: Execute the transaction.

Once you’ve received the quote and the Router’s Reserve Token Handler has the required permissions, all you have to do is execute the transaction.

https://dev.routerprotocol.com/pathfinder-api/performing-a-cross-chain-transaction/execute-the-transaction

And that’s it. In just these 3 simple steps, you can leverage the power of the Pathfinder Algorithm for your project.

For a seamless integration experience, we would recommend joining our Developers Discord community.

About Router Protocol

Router Protocol is building a suite of cross-chain liquidity infra primitives that aims to seamlessly provide bridging infrastructure between current and emerging Layer 1 and Layer 2 blockchain solutions.

Website: https://routerprotocol.com/

Litepaper: https://routerprotocol.com/assets/docs/Router-Litepaper.pdf

Twitter: https://twitter.com/routerprotocol

Telegram: https://t.me/routerprotocol

Telegram announcements: https://t.me/router_ann

Discord: https://discord.gg/yjM2fUUHvN

--

--

Router Protocol
Router Protocol

Written by Router Protocol

Router Protocol is a secure, composable, and modular framework for building interoperable applications. More at https://routerprotocol.com

No responses yet