headtag and before any other script or CSS tags. Adjust the options object with chains and mode you wish to work with.
lififunction (called the
lifi()command queue) that allows you to schedule commands to be run once the widget.js library is loaded and ready to go.
lifi()command queue to initialize a new swap drawer or view depending on the provided configuration object.
lififunction is the configuration object. You can change it to pre-fill the destination token and the destination chain.
iframein inline mode, you need to insert
id="lifi-widget"in the place you want to show it.
lifi-widgetis the default name of the
id, you can change it by setting the
elementIdproperty in the configuration object.