The LI.FI Widget provides a useWidgetEvents
hook that lets you subscribe to a series of widget events, facilitating the extraction of valuable information, including transaction data.
You can check our documentation on https://docs.li.fi/integrate-li.fi-widget/widget-events
Explore the LI.FI Widget repository on GitHub at https://github.com/lifinance/widget
To see an example of implementing the useWidgetEvents
hook, view the code reference in our widget repository: https://github.com/lifinance/widget/blob/main/examples/nextjs/components/WidgetEvents.tsx.