Prerequisites
Before you begin, ensure you have the following installed:
- Node.js
- npm
- A Next.js project set up with TypeScript
Package Manager
To install the Solana Wallet Adapter and its dependencies, run the following command in your project directory:
- Npm
npm install @solana/wallet-adapter-react @solana/wallet-adapter-base @solana/wallet-adapter-wallets @solana/web3.js @solana/wallet-adapter-react-ui
This command installs the core wallet adapter packages along with the Solana web3.js library and the React UI components.