Swap Widget
This guide walks you through the steps to embed the swap widget in your website in a few minutes.
Last updated
This guide walks you through the steps to embed the swap widget in your website in a few minutes.
Last updated
The Swap Widget bundles the whole swapping experience into a single React component that developers can easily embed in their app with a few lines of code.
Here is a live preview of the swap widget.
Install the widgets library via npm
,pnpm
or yarn
.
or
Register for an new API key
with the Mosaic Team, see here
Import @mosaicag/swap-widget/style.css
in the root component in react, (ex: main.tsx/App.tsx)
A lot of wallets are coming to Movement. You are free to use any wallet you want.
The swap widget uses a wallet
prop to allow users to sign and submit transactions (details here)
Feel free to contact us to request new config/report bug if you think it might be helpful.
Please reach out to us via Discord or email us directly at huy@mosaic.ag for assistance and further details.