Add Crypto Swaps to Your App in 3 Minutes
Embed a fully-featured swap widget on your website. Your users can trade tokens at the best rates from 7 DEX aggregators, and you earn revenue on every swap.
1Drop-in Widget
Add two lines of HTML to your page. The script finds all elements with the data-chainbridge-swap attribute and renders an iframe widget inside each one.
2React Component
For React or Next.js apps, use a simple iframe component with typed props.
3Configuration
Customize the widget with data attributes. All parameters are optional.
4Revenue Sharing
Earn on Every Swap
Set your wallet address as data-fee-recipient and specify a fee in basis points with data-fee-bps. Your fee is collected on top of the platform fee and sent directly to your wallet on each swap transaction.
Example: setting data-fee-bps="30" means you earn 0.30% on every swap routed through your widget. Fees are non-custodial — they are built into the swap transaction and settled on-chain.
Live Demo
This is the actual widget running in an iframe, just as it would appear on your website.
No API key required. No sign-up needed.