Rainbow Kit
This tutorial will illustrate a step-by-step walkthrough in NextJS of how to setup a project using RainbowKit and how to set up a custom wallet list that recommends the ME Wallet.
Note:
The ME wallet works out of the box in the RainbowKit default config if a user has the wallet installed on their browser, because all installed wallets that conform to EIP-6963 will be detected. This guide is to illustrate how you can control the specific wallets shown in a custom list.
Installation
Implementation
Here we will import the necessary libraries, create a custom connectors
list, and a config that communicates with those connectors and Ethereum mainnet.
Once you've done that, you can wrap your application with RainbowKitProvider
, WagmiProvider
, and QueryClientProvider
.
Add the Connect Button
In your index.tsx
file, go ahead and add the ConnectButton
supplied by RainbowKit
And that's all. When you trigger the button, you should get a nice modal that recognizes installed wallets and sets up the ME wallet in a standalone "reccommended" catagory. It may look something like this:
Last updated