Copy and paste the snippet of code below into the
head section of your HTML.
***NOTE - IF YOU ARE USING AN API KEY OR PARTNER CONTRACT: Make sure to surround
partnerContractAddress values with quotes.***
You will need a
div with an ID that matches the
nodeId in the snippet:
You can do this by copy and pasting the snippet of code below into the
body section of your HTML where you would like the Widget to appear.
This is an image of what the Totle Widget will look like in your website.
To try out a live Totle Widget, follow this link: widget.totle.com
Can I earn fees with the Totle Widget?
Yes. By adding a fee contract to the
partnerContractAddress parameter, you can earn fees on your Totle Widget swaps. To set up a fee contract, visit the Totle Console to deploy your own partner contract.
Can I view my Totle Widget's transaction activity somewhere?
If you have a fee contract set up, yes. You can check activity in the Totle Console.
Can I pre-select which tokens will be trade-able in my Totle Widget?
Yes. By configuring the
soureAssetAddress and the
destinationAssetAddress to your desired tokens, you can pre-select which tokens will be trade-able in your widget.
I have followed the directions but get an error: The address "0xeb6bc0bd26baeee8b6d641eb3ec1f32bcdb3b3c0" is invalid for field "partner contract"?
This is one of the most frequent questions asked by our partners. Please make sure to surround
partnerContractAddress values with quotes.
If you need help or have some feedback for us, send us a message in the Totle Telegram.