Installation
Learn how to install and configure the Gorbag wallet adapter for the Gorbagana network in your project.
Prerequisites
Before installing the Gorbag wallet adapter, ensure you have:
- Node.js version 16 or higher
- A project using React or Next.js (recommended)
- Access to the Gorbagana network (testnet or mainnet)
Install the Package
Install the Gorbag wallet adapter using your preferred package manager. Based on the actual implementation:
BASH
1npm install @gorbag/wallet-adapterRequired Dependencies
The Gorbag wallet adapter requires these dependencies that must be installed in your project:
BASH
1# Install the main wallet adapter2pnpm add @gorbag/wallet-adapter34# Install required Solana dependencies5pnpm add @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/web3.jsWallet Adapter Base
The adapter also depends on the base wallet adapter package:
BASH
1# Install the base wallet adapter2pnpm add @gorbag/wallet-adapter-baseVerify Installation
After installation, you can verify that the packages were installed correctly by checking your package.json:
JSON
1{2 "dependencies": {3 "@gorbag/wallet-adapter": "^x.x.x",4 "@gorbag/wallet-adapter-base": "^x.x.x",5 "@solana/wallet-adapter-react": "^x.x.x",6 "@solana/wallet-adapter-react-ui": "^x.x.x",7 "@solana/web3.js": "^x.x.x"8 }9}