Swap Widget
Here is how you can do it in just a few steps:
Include Resources
A step-by-step guide to integrating the CrowdSwap Swap Widget into your project
Add the Widget Element
<crowdswap-swap-widget
id="crowdswapWidget"
config='{
"fromTokenAddress":"0x0000000000000000000000000000000000001010",
"fromChainId":137,
"toTokenAddress":"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"toChainId":56,
"theme":"light",
"affiliateId":"your affiliate Id"
}'></crowdswap-swap-widget>property name
description
Include the Widget Script
Test and Verify
Custom Splash Loading (Optional)
Last updated