Embed the hosted LightSwap swap widget with an iframe, optional query parameters, and public attribution keys.
The LightSwap widget lets you add the hosted swap flow to your website with an iframe.Use the widget when you want users to complete the swap flow on your page without building a backend API integration first.The widget can run without a key. If you have a revenue-sharing agreement with LightSwap, add your public widget key so swaps can be attributed to your integration.All query parameters are optional. https://lightswap.me/widget is a valid widget URL and opens with LightSwap defaults.
Do not put an API key in the widget. API keys are secret backend credentials. Widget keys are public attribution identifiers.
LightSwap stores revenue-sharing terms in its own systems. Do not add custom fee or commission parameters to the widget URL.You do not need to register a domain before embedding the widget. If you use a public widget key, only place it on pages where you want swaps attributed to your integration.
Contact LightSwap if you want attributed widget usage or revenue sharing.Looking for a backend API integration instead of the iframe widget? Start with Direct API or go directly to the API Reference.