Getting Started with the Swap Widget
Last updated
Last updated
This guide walks you through the steps to embed the swap widget in your website in 2 minutes. With the swap widget, your users can trade ERC-20 tokens on the Native without leaving your site!
Hereβs a live preview of the swap widget.
Example use cases include:
Swapping assets in a DeFi application
Acquiring a token to participate in your web3 community (e.g. FWB or a gaming token)
Converting to the required currency for an NFT purchase (e.g. WETH)
You can make the widget feel like a native part of your app by customizing the colors, font, and token list to match your app theme. This guide will teach you how.
Integrating the Native Swap Widget is simple. Simply copy and paste the code snippet in the Swap widget page (Widgets > Swap) into desired locations of your website. Alternatively, you can use Native's SDK for more customizability.
If you do not have a website and still want your own DEX, you can click on "Preview" button to get the URL of your own DEX.