Integrate as an Embed
Use elements as an embed on your dApp via Swapfast.app!
Last updated
Use elements as an embed on your dApp via Swapfast.app!
Last updated
Supercharge your dApp with Cross-chain Swaps and Bridging just by copy-pasting a few lines of HTML to your dApp!
Just follow these four simple steps -
1. Go to swapfast.app
2. Click the embed icon
3. Click the Copy code button
4. Paste the code in your dApp!
Yep, it only takes two minutes to add swaps and bridge to your dApp!
If you want to pre-select the chain or token, you can do that via query parameters.
We're coming up with an update on swapfast.app where you get an option to pre-select source chain, source token, destination chain and destination token directly!
Here's the query parameters you can set
Source Chain - sourceChainId
Destination Chain - destinationChainId
Source Asset - sourceAsset
Destination Asset - destinationAsset
You need to specify the on-chain denom for sourceAsset
and destinationAsset
If I want to pre-select ATOM on Osmosis to NTRN on Neutron, here's how the URL would look like
And here's how the embed code would look like
We don't support theme customisation for elements embed yet. Please reach out to support+elements@leapwallet.io if you need updates on this.