iframesolution allows you to add it to your website in 5 mins and ensures that your users always have access to the latest version of LI.FI. It is configurable to fit your use case and tokens.
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"where 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.