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

Embed code
<div data-swapwizard="swap"
     data-affiliate="0x0000000000000000000000000000000000000000"
     data-theme="dark">
</div>
<script src="https://swapwizard.xyz/widget.js" async></script>

Available attributes

AttributeTypeDescription
data-swapwizardstringWidget mode: swap, pools, or full (both)
data-affiliateaddressWallet address registered as affiliateCode. Receives on-chain the affiliate fraction of the protocol fee.
data-chainnumberPreselect a chain by ID (1, 56, 137, 8453, 42161)
data-themestringForce dark or light theme
data-langstringForce language (en, es, fr)
data-show-chainsbooleanShow/hide chain selector control
data-show-langbooleanShow/hide language selector
data-show-themebooleanShow/hide theme toggle

Live preview

SwapWizard — By DeFiRe Labs ©