This project shows an example of how to use the LI.FI Widget with the Rainbowkit.
- A WALLET CONNECT ID
- Clone this repo
- Install dependencies
pnpm install
Update .env with your variables.
Start the app by running pnpm dev
This example fetches a list of chains from LI.FI using the useAvailableChains hook, and they are passed to the wagmi config.
The widget and Rainbowkit both use the wagmi library to interact with wallets, and we keep both instances in sync by calling the
useSyncWagmiConfig in the WalletProvider