hypermid.io, loaded as an iframe.
The widget includes full wallet connection (550+ wallets via Reown/WalletConnect) supporting EVM, Solana, Bitcoin, TON, TRON, and SUI — no additional setup needed.
Features
- Cross-chain swap & bridge — 90+ chains, best route comparison
- On-ramp — Buy crypto with card via RampNow (USD, EUR, GBP, and more)
- Gas refuel — Top up gas on any chain
- Wallet connection — MetaMask, WalletConnect, Coinbase, Trust Wallet, Binance, and 550+ more
- Full theme customization — Colors, borders, radius, fonts, shadows
- Event callbacks — Quote, execute, status, error events via postMessage
- Auto-resize — Iframe height adjusts to content
- Mode toggle — Users can switch between Swap, Gas, and Fund modes
Quick Start
Script Tag (Any Website)
Data Attribute (Zero JS)
For even simpler integration — no JavaScript needed:Direct Iframe
If you prefer full control, embed the iframe directly:Configuration Options
Display
Presets
Theme Customization
Override any visual aspect of the widget to match your brand:
Example — fully branded widget:
Wallet Connection
The widget includes built-in wallet connection via Reown AppKit — the same wallet infrastructure used by the main Hypermid app. No additional configuration needed. Supported wallet ecosystems:
When users click “Connect Wallet”, a modal appears with all supported wallets for the selected chain ecosystem. After connecting, the widget displays token balances and enables transaction signing.
On-Ramp (Buy Crypto)
The widget includes a built-in “Buy Crypto” tab powered by RampNow. Users can purchase crypto with their credit/debit card directly within the widget. To open the widget in on-ramp mode by default:- Fiat currencies: USD, EUR, GBP, and more
- Crypto tokens: ETH, USDC, USDT, BTC, and 50+ tokens
- Payment methods: Credit card, debit card, Apple Pay, Google Pay
- KYC: Handled by RampNow within the flow
Event Callbacks
Listen for events from the widget:window.postMessage from the iframe. The embed script handles the plumbing automatically.
Programmatic Control
After initialization, control the widget dynamically:React Integration
Wrap the embed script in a React component:Supported Chains
The widget supports all chains available in the Hypermid app:- EVM: Ethereum, Arbitrum, Base, Polygon, Optimism, BSC, Avalanche, and 50+ more
- Non-EVM: Solana, Bitcoin, TON, TRON, NEAR, XRP, Dogecoin, Litecoin, and more
- On-ramp: Buy crypto with card on any supported chain
Best Practices
- Set default chains — Pre-select the most common pair for your users to reduce friction
- Use
apiKey— Ensures fee tracking and higher rate limits for your integration - Handle callbacks — Implement
onExecuteandonErrorto update your app state - Don’t use
sandbox— The iframesandboxattribute breaks wallet connections - Set
height: 700px— The widget needs at least 700px height for the on-ramp form - Lock chains if needed — Use
lockFromChain/lockToChainfor focused use cases - Test in incognito — Your existing Hypermid session may auto-connect the wallet