Affiliate Widgets
Embed SwapWizard components in your website. If your wallet is registered in the on-chain affiliateCode registry, 0.02% of the protocol fee is redirected to your wallet on every swap executed through the widget.
For the on-chain redistribution to operate towards your wallet, that address must be registered in the on-chain affiliateCode registry of SwapWizardCore. To request registration, open a ticket in the support channel with the subject "Affiliate request" and the address to register. The wallet you connect and sign with will be registered as the affiliate address. Registration is performed via a contract transaction and is directly verifiable on-chain; from that moment, the redistribution is automatic on every operation.
The integrator is responsible for the domain, content, and terms of the website hosting the widget. SwapWizard does not supervise, endorse, or support third-party sites using its embeddable components; widgets are open-use software tools, and the relationship between the integrator and the users accessing the widget from the integrator's domain is outside the scope of SwapWizard.
Configure widget
<div data-swapwizard="swap"
data-affiliate="0x0000000000000000000000000000000000000000"
data-theme="dark">
</div>
<script src="https://swapwizard.xyz/widget.js" async></script>Available attributes
| Attribute | Type | Description |
|---|---|---|
| data-swapwizard | string | Widget mode: swap, pools, or full (both) |
| data-affiliate | address | Wallet address registered as affiliateCode. Receives on-chain the affiliate fraction of the protocol fee. |
| data-chain | number | Preselect a chain by ID (1, 56, 137, 8453, 42161) |
| data-theme | string | Force dark or light theme |
| data-lang | string | Force language (en, es, fr) |
| data-show-chains | boolean | Show/hide chain selector control |
| data-show-lang | boolean | Show/hide language selector |
| data-show-theme | boolean | Show/hide theme toggle |
