Follow the steps below to migrate from the Starter Pack of Anza Adapter to AppKit. Based on the default implementation. Our starting point is the Anza Adapter Starter Pack in Github.
After integrating AppKit, you can interact with the Solana network using the @solana/web3.js library.
You can check our example on how to fully interact or read our guide for more information.
a. Add all the imports you need to interact with the Solana network:
Copy
import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";import { PublicKey, Transaction, SystemProgram } from "@solana/web3.js";import { useAppKitAccount, useAppKitProvider } from "@reown/appkit/react";import type { Provider } from "@reown/appkit-adapter-solana/react";