The Cross-chain Route Widget is a React component and web application that enables cross-chain routing of DeFi positions and tokens. It leverages the Enso API to identify optimal routes and uses Stargate to bridge tokens between chains.
You can integrate the widget in your interface to provide a simple and convenient way for your users to perform cross-chain routing.
Key Features
The widget is highly customizable, allowing you to configure:
Source and destination chains: Specify which blockchain networks to route between
Input and output tokens: Allow users free choice or restrict to specific tokens
Output project destination: Direct tokens to specific protocols for streamlined workflows
How It Works
The widget provides an intuitive experience for users. After selecting an input token on the source chain and an output token on the destination chain, the widget displays the optimal route before transaction signing.