A decentralized application (dApp) built on the Solana blockchain that allows users to view their SOL balance, manage SPL tokens, and perform various transactions.
- Connect to wallet extensions
- Get SOL balance
- List all SPL tokens owned by the user with metadata
- Airdrop SOL on devnet
- Send SOL on devnet and mainnet
- Send SPL tokens on devnet and mainnet
- Next.js (v14.2.8): React framework for building the frontend
- React (v18.3.1): JavaScript library for building user interfaces
- TypeScript (v5): Typed superset of JavaScript
- Tailwind CSS: Utility-first CSS framework
- shadcn/ui: Re-usable components built with Radix UI and Tailwind CSS
- Recoil (v0.7.7): State management library for React
- Solana Web3.js (v1.95.3): Solana blockchain integration library
- @solana/spl-token (v0.4.8): Library for interacting with SPL tokens
- @solana/spl-token-registry (v0.2.4574): Registry for SPL tokens
- @solana/wallet-adapter: Set of libraries for wallet integration
- Node.js (v14.0.0 or later)
- pnpm (v6.0.0 or later)
- Solana CLI tools
- A Solana wallet (e.g., Phantom, Solflare)
-
Clone the repository:
git clone https://github.com/rahuldev7583/dropX.git cd dropX -
Install Dependencies:
pnpm install
-
Set up environment variables: Create a `.env.local` file in the root directory and add:
NEXT_PUBLIC_MAINNET_SOL_API="your_mainnet_api_url" NEXT_PUBLIC_DEVNET_SOL_API="your_devnet_api_url"
- Toggle Switch Button to switch between devnet and mainnet
-
Start the development server:
pnpm run dev
-
Open your browser and navigate to http://localhost:3000
-
Connect your Solana wallet
-
Use the dApp to perform various operations:
- Request an airdrop (devnet only)
- Send SOL
- Send SPL tokens