Getting Started
Installation
Install comp-kit
and its peer dependencies. I am using yarn
as the package manager, you can use the package manager of your choice.
Configuration
Once you're done with the installation of the dependencies, you need to set up KitProvider
at the root of your application. This can be either in your layout.tsx
(if you're using Next.js 13 app
directory), _app.tsx
(if you're using old pages
directory of Next.js) or App.tsx
depending on the framework you're using.
Below is an example of the Next.js 13 app
directory. For that, in your layout.tsx
file, wrap your children
with KitProvider
imported from @nazeeh2000/comp-kit
You have to pass two required props to KitProvider
i.e. projectId
and supportedChains.
projectId
refers to the id you get from the WalletConnect dashboardsupportedChains
accepts an array of the chains you want to support for your dapp. These chains have to be imported fromviem/chains
.
Last updated