Never put an API key in the widget. API keys are secret backend credentials. Widget keys are public attribution identifiers.
Quick start
1
Paste the iframe
Place the snippet where the widget should appear. No wrapper or custom parent component is required.
2
Set optional defaults
Set the starting pair, amount, theme, accent color, and locale in the iframe URL.
3
Add your widget key
Add
key=YOUR_PUBLIC_WIDGET_KEY from Account → Business so completed swaps earn you commission. Without a key, the widget works but attributes nothing.Basic iframe
https://lightswap.me/widget with no parameters is a valid URL and opens with LightSwap defaults.
Open widget example
Preview the hosted widget in an iframe.
Add attribution
Copy your public widget key from Account → Business and add it as thekey query parameter.

