This is a demo project showcasing how to embed the Mach.Exchange cross-chain swap widget in a Next.js application. The widget allows users to perform seamless cross-chain swaps.
- 🔄 Cross-chain swaps
- 🎨 Customizable widget theme
- 📱 Responsive design
- 🚀 One-click deployment
Deploy your own widget demo with Vercel:
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the widget in action.
The widget is embedded using an iframe with the following configuration options:
sellChain: The source chain ID (10143 for Monad Testnet)buyChain: The destination chain ID (6342 for MegaEth Testnet)showBranding: Display Mach.Exchange brandinghideAIInput: Hide AI input fieldthemePrimary: Primary color themethemeBackground: Background color theme
You can customize these options by modifying the iframe URL parameters in app/page.tsx.
To learn more about Mach.Exchange and the widget integration:
For support and feedback, please visit our Discord community or open an issue on GitHub.