Skip to main content
This guide walks through upgrading a React project that uses the Wagmi adapter from AppKit 1.x with Wagmi 2.x to the latest AppKit 2.x with Wagmi 3.x. It uses the React Wagmi example for AppKit 1.x as the starting point and the React Wagmi example for AppKit 2.x as the end result. Only package.json changes. The application code stays the same.

Before and after

package.json
The versions above are an example. Use the latest releases when you upgrade.

Migration steps

1

Update the Reown packages

Set every @reown/* package in your project to the latest 2.x version. All Reown packages must use the same version, including any additional adapters (for example @reown/appkit-adapter-solana or @reown/appkit-adapter-bitcoin).
package.json
2

Update Wagmi and viem to the latest version

Update wagmi to the latest 3.x release and viem to the latest 2.x release.
package.json
3

Add the @wagmi/connectors package

Wagmi 3.0 requires @wagmi/connectors as a direct dependency. Add it, or update it to the latest version if your project already includes it.
package.json
4

Reinstall dependencies

Remove node_modules and your lockfile, then install the updated packages:
5

Run your app

Start your app and confirm that the AppKit modal opens and wallets connect as before. Your WagmiAdapter and createAppKit configuration stays the same.If your app calls Wagmi hooks or actions directly, check the Wagmi 3.x migration guide for breaking changes in the Wagmi API.

React Wagmi example (AppKit 2.x)

Check the React Wagmi example for AppKit 2.x

Report a bug

If you find a bug after upgrading to AppKit 2.x, contact support from the Reown Dashboard through the Intercom bubble, or report an issue.