Overview
Swap mode enables users to exchange tokens across different blockchains seamlessly. Unlike pay mode (exact output) or fund mode (user-defined input), swap mode provides a flexible interface where users can select both input and output tokens and amounts.Key Features
- Cross-chain swapping: Swap tokens between different blockchains
- Dynamic input/output: Users control both source and destination amounts
- Real-time quotes: Live pricing and optimal routing
- Gasless options: Support for gasless transactions
- Multiple quote providers: Access to various liquidity sources
Basic Usage
Simple Swap Widget
Using the useQuote Hook
For more control over the swap process, use theuseQuote
hook directly: