Layerswap iFrame
The Layerswap iFrame integration allows you to embed the full Layerswap interface directly within your web application. This provides a seamless in-app experience where users can complete swaps without leaving your platform. Unlike the Widget integration which requires installation and configuration, the iFrame approach is simpler - you just embed a URL. However, it offers less customization and control compared to the Widget.Embedded Form
Embed the Layerswap interface directly in your app and customize it to fit your specific use case.Customization
For adjusting the look and UX of the Layerswap interface you can pass any configuration parameter listed in the Configurations page through URL query parameters:- Network Selection:
from,to,lockFrom,lockTo,hideFrom,hideTo - Asset Selection:
fromAsset,toAsset,lockFromAsset,lockToAsset - Pre-filled Values:
amount,destAddress,account - UI Customization:
actionButtonText,hideAddress,hideRefuel - Tracking:
clientId,externalId - Flow Type:
defaultTab(swap or cex)
When the
destAddress parameter is included in the URL, a warning will be displayed in the UI and the user must confirm the destination address before proceeding with the transaction.If you want to bypass the destination address confirmation flow, you must integrate Layerswap via the Widget instead of the iFrame approach.