Reimagine Cross-chain Swaps with Router’s JS SDK and Asset-swap API

Router Protocol
4 min readJul 11, 2022


In today’s world, we are divided by cities but connected by roads. We are divided by borders but connected by flights and ships. But when we look at the cryptosphere, the siloed nature of the blockchain networks is restricting a seamless flow of communication. However, it is well documented that without the interconnectivity of different blockchain networks, we can’t unlock the true potential of Web 3.0.

At Router Protocol, we are building the infrastructure required to facilitate cross-chain communication and catalyze the evolution of the ecosystem towards becoming chain-agnostic. Using this infrastructure, we built Voyager, a cross-chain bridge that went live earlier this year.

Voyager is a cross-chain swapping engine that is currently integrated with 9 networks: Ethereum, Polygon, Fantom, BSC, Harmony, Cronos, Avalanche, Optimism, and Arbitrum; with many more to follow. In the past 60 days, Voyager conducted transactions surpassing $200 million in volume. It stands out because of the following advantages:

  1. On-chain validation: Router employs on-chain validation by conducting a voting mechanism on the destination chain.
  2. The gold standard in security: We engage with multiple audit partners (for both Web2 and Web3 security) and also run a highly rewarding bug bounty program in collaboration with ImmuneFi.
  3. Any token to any token swap: Voyager allows any arbitrary token to be swapped to any other arbitrary token across the nine chains.
  4. Seamless execution: Almost all cross-chain swaps are completed in less than 3 minutes.
  5. Optimal route: For reserve and mintable tokens such as ETH, USDC, and ROUTE, among others, Voyager provides 1:1 transfers. For all the other tokens, Voyager finds the most optimal route across several DEXes on the source and destination chain.

A lot of Voyager’s capabilities stem from its use of Router Protocol’s proprietary “Pathfinder Algorithm.” Recently, we abstracted our Pathfinder Algorithm and made it available in the form of an asset-swap API. But, to create a more seamless integration experience, we have now launched the Router JS SDK.

Introducing Router JS SDK and Asset-swap API

If you’re building a Web 3.0 project, you can use our JS SDK or API to get the best price for a cross-chain trade and the date required to execute that transaction without having to build any backend functionality.

This is because, with the API and Router JS SDK, you get the entire backend functionality of Voyager on your platform with a simple integration. For e.g., just like MetaMask provides the capability of same chain swaps inside its interface, by integrating our SDK, any wallet provider can provide the functionality to perform cross-chain swaps inside their platform. To check out how to integrate the SDK/API, check out our developer docs here.

This integration will enable you to create completely customizable white-labeled solutions for conducting cross-chain swaps. But you might be wondering how this SDK launch is different from Router Protocol’s CrossTalk library? Read on to know the answer to that question.

How is Router JS SDK different from CrossTalk Library?

CrossTalk is a smart contract library that allows users to build cross-chain applications using the Router infrastructure. It primarily facilitates cross-chain communication amongst smart contracts, which helps developers with use cases like:

  • Native cross-chain applications like cross-chain lending and borrowing platforms, and cross-chain governance systems, among others.
  • Port a single chain dApp to multiple chains
  • Launch chain agnostic NFTs
  • Create stablecoins with built-in cross-chain capabilities

While CrossTalk is relevant to dApps looking to leverage cross-chain technology for broader use cases, JS SDK and asset-swap API are specific to the cross-chain swap functionality. It’s relevant for use-cases including but not limited to:

  • Capturing cross-chain arbitrage;
  • Providing cross-chain swap as a service inside existing projects, particularly wallet providers, multi-chain DEXes, and other multi-chain applications;
  • Customizing user flow for cross-chain swaps in existing cross-chain bridges that only have cross-chain transfers as a functionality.

Concluding Thoughts

At Router Protocol, the only mission that drives us is helping Web 3.0 developers build, and Web 3.0 users adopt cross-chain products. This launch is just another step in that direction. In fact, a few wallets are already integrating Router’s API to provide cross-chain swaps directly from their interface. We will be releasing the details of these projects pretty soon.

If you’re running a Web 3.0 project that can benefit from this integration, then we encourage you to reach out to us on TG/Discord if you face any issues integrating the SDK/API or want our help to get started.

About Router Protocol

Router Protocol is building a suite of cross-chain infra primitives that aims to enable blockchain interoperability between current and emerging Layer 1 and Layer 2 blockchains.






Telegram Announcements:




Router Protocol

Router Protocol is a pioneering cross-chain solution that enables secure and efficient communication between blockchain networks. Website -