Skip to main content
Integrating in-app swap functionality into your Sei application enables users to exchange tokens directly within your platform, enhancing user experience and engagement.

Overview

Swap widgets are embeddable UI components that abstract the complexity of interacting with decentralized exchanges (DEXs) and liquidity aggregators. They provide:
  • Seamless UX: Users can swap tokens without leaving your app
  • Reduced Friction: No need to redirect users to external DEX interfaces
  • Revenue Opportunities: Many providers offer fee-sharing mechanisms
  • Cross-Chain Support: Some widgets enable bridging assets from other chains

Symphony Swap Widget

Symphony is a native DEX aggregator on Sei, offering the simplest integration via iframe embedding.

Quick Start

Live Demo

Size Requirements

  • Minimum Width: 377px
  • Minimum Height: 650px (recommended to prevent wallet modal scrolling)
  • Optimal Height: 680-685px

URL Parameters

Customize the widget by appending query parameters:

Token Selection

Tokens can be changed by the user after the widget loads.

Appearance

For hex colors, use %23 instead of # in the URL (e.g., %23FFFFFF for white).

Features

Complete Example


Best Practices

Security Considerations

Security Checklist
  • ✅ Validate that iframe sources match official domains
  • ✅ Implement Content Security Policy (CSP) headers

Performance Optimization

Responsive Design

Error Handling


Additional Resources