SolFlux is a sleek Solana devnet companion that lets you monitor balances, request test SOL, send tokens, and sign arbitrary messages from a single dashboard. It is built with React, Vite, and Tailwind CSS and integrates the Solana Wallet Adapter to connect to popular wallets in just a few lines of code.
- Overview
- Features
- Tech stack
- Getting started
- Available scripts
- Usage guide
- Project structure
- Customization notes
- Dependency reference
- Next steps
Out of the box, SolFlux connects to the Solana devnet endpoint and ships with polished UI components powered by Tailwind CSS. The dashboard provides a starter experience for hackathons, workshops, or prototyping Solana-enabled front-ends.
- Wallet-aware balance card — Fetches and refreshes the connected wallet's SOL balance.
- Devnet airdrop helper — Requests SOL airdrops with validation and automatic transaction confirmation.
- SOL transfer form — Sends SOL between wallets using
SystemProgram.transferwith confirmation feedback. - Message signing demo — Signs arbitrary text with supported wallets and displays the generated signature.
- Toast notifications — Success and error alerts with auto-dismiss behaviour for better UX.
- React 19
- Vite 7 for the build toolchain
- Tailwind CSS v4 (via
@tailwindcss/vite) - Solana Wallet Adapter React bindings and UI kit
- Solana Web3.js
- lucide-react icon set
- Install dependencies
npm install
- Start the dev server
npm run dev
- Open the printed URL (default
http://localhost:5173) and connect a devnet-capable Solana wallet.
ℹ️ Node.js 18+ is recommended to match the tooling versions bundled with Vite 7.
npm run dev— Launch Vite in development mode with hot module replacement.npm run build— Produce an optimized production build.npm run preview— Preview the production build locally.npm run lint— Run ESLint across the project.
- Connect a wallet using the Solana Wallet Adapter button in the top-right corner. Configure the supported wallets array in
src/main.jsx(see Customization notes). - Check balance on the hero card. Use the refresh icon to fetch the latest SOL balance.
- Request devnet SOL via the Request Airdrop card. The UI validates input and confirms the transaction on-chain.
- Send tokens with the Send Solana form. Enter a recipient address and SOL amount to dispatch a transfer transaction.
- Sign messages in the Sign Message panel to generate a signature that you can later verify on-chain or in off-chain services.
Airdrop-dapp/
├── src/
│ ├── App.jsx # Layout and shell
│ ├── main.jsx # Wallet adapters and providers
│ ├── index.css # Tailwind entrypoint
│ └── components/
│ ├── Airdrop.jsx # Devnet airdrop form
│ ├── ShowBalance.jsx # Balance display and refresh
│ ├── SendTokens.jsx # SOL transfer workflow
│ ├── SendMessage.jsx # Message signing demo
│ └── Notifications.jsx# Toast UI component
└── public/ # Static assets
- Wallet list — The sample app keeps the
walletsarray empty inWalletProvider. Import the wallets you need from@solana/wallet-adapter-walletsand pass them in. - Network endpoint — Update the
endpointpassed toConnectionProviderif you wish to target mainnet-beta or a local validator. - Styling — Tailwind CSS v4 classes drive the UI. Add global tokens via
src/index.cssor extend Tailwind's config if needed. - Notifications — The notification hook lives in
App.jsx. Extend it or integrate a third-party toast system as desired.
Got all packages -
npm install --save
@solana/wallet-adapter-base
@solana/wallet-adapter-react
@solana/wallet-adapter-react-ui
@solana/wallet-adapter-wallets
@solana/web3.js
bs58
@noble/curves/ed25519.js
react
from - https://github.com/anza-xyz/wallet-adapter/blob/master/APP.md
Happy hacking on Solana! 🚀