This is a web app for creating a crypto wallet and transferring funds through the Solana dev network, built using Next.js, solana-web3.js and TailwindCss.
Try it on Mobile (screen width under 768px):
https://solana-simple-wallet-with-solana-web3js.vercel.app/
- You should have Node.js and npm (install it from official Node.js website)
-
Clone the repo:
git clone https://github.com/mezger75/Solana-simple-wallet-with-solana-web3js.git cd Solana-simple-wallet-with-solana-web3js
-
Install dependencies:
npm install
-
Run the dev server:
npm run dev
-
Open your browser and check the address http://localhost:3000
-
Build the application for production:
npm run build
-
Start the production server:
npm run start
-
Through 'Request Airdrop' button:
After creating the wallet in the app, you can request SOL through the "Request Airdrop" button on the '/transactions' page. This feature is available only once per day.
-
Wallet funding through CLI:
For Windows: Install it from here
For MacOS & Linux: Install it from here
After creating your wallet with the app, request SOL with the following CLI command:
solana airdrop 2 <WALLET_ADDRESS> --url https://api.devnet.solana.com
Then you can confirm the transaction with this command:
solana confirm <TRANSACTION_SIGNATURE> --url https://api.devnet.solana.com