Getting Started
There are three ways you can embed OpenOcean swap widget into your protocols/Apps.
Method #1 - Use <iframe> to inject the OpenOcean widget into your program.
- Input <iframe> to your front-end code.
- Refresh the page and check whether the component is installed.
<iframe src="https://widget.openocean.finance"></iframe>
We highly recommend using the custom mode to integrate wallets to make sure it works properly. More Details
Method #2 - Install the widget by using the OpenOcean SDK module.
Method #3 - Install the widget by using the OpenOcean API.
Method #1 - add 'referral' which is fee charger address as query param in <iframe> request link
For example:
https://widget.openocean.finance?referral=0x3487ef9f9b36547e43268b8f0e2349a226c70b53#/BSC/BNB/BUSD
The default referral fee on widget will be 1% and OpenOcean will share 15% of it. You may contact us for any adjustments.
Method #2 - contact us
Last modified 11mo ago