A React component and web app for cross-chain routing of DeFi positions and tokens.
Install your project
Install the package:
Import and use the component
WagmiConfig
provider.Customize the theme
Props & Configuration
Parameter | Description | Required |
---|---|---|
apiKey | Your Enso API key | Yes |
tokenIn | The input token address (you can use to pin the input token) | No |
tokenOut | The output token address (you can use to pin the output token) | No |
chainId | The starting position’s chain ID (required with token addresses) | Yes* |
destinationChainId | The destination chain ID (you can use to pin the destination chain) | No |
themeConfig | Theme settings | No |
enableShare | Enable route sharing functionality copy with button | No |
obligateSelection | Force token selection | No |
indicateRoute | Show swap route path | No |
showRoute | Show the route | No |
showRouteDetails | Show route details | No |
themeConfig | Customize the Widget theme | No |
Updated