Overview
Wagmi is a collection of React hooks for Ethereum Virtual Machine (EVM) compatible networks that makes it easy to work with wallets, contracts, transactions, and signing. Base Account integrates perfectly with Wagmi, allowing you to use all your familiar hooks.To create a new wagmi project, you can use the command line
npm create wagmi@latest
.Installation
If you start a new wagmi project, you can skip the installation step. If you already have a project, you can install the dependencies with your package manager of choice:To get access to the latest version of the Base Account SDK within Wagmi, you can use the following command to override it:Or you can use a specific version by adding the version to the overrides:Make sure to delete your
node_modules
and package-lock.json
and run a new install to ensure the overrides are applied.