Solana Devnet Airdrop is a simple React-based web application that allows you to send airdrop of SOL tokens to a Solana address on the Devnet network. It uses the Solana Web3.js library for interacting with the Solana blockchain. The project is designed to demonstrate how to connect to the Solana network and perform transactions using Web3.js.
Solana Airdrop
This repository contains a simple React application that allows you to airdrop SOL to a given Solana address on Devnet.
Tech Stack
- React
- @solana/web3.js
Prerequisites
Installation
1. Clone the repository:
git clone https://github.com/codescalper/solana-airdrop.git
2. Install dependencies:
cd solana-airdrop
npm install
3. Run the application:
npm start
4. Navigate to http://localhost:3000 in your browser to use the airdrop tool.
Usage
To use the airdrop tool, enter a valid Solana address into the input field and click the "Airdrop" button. If the address is valid, the application will send 1 SOL to the address on Devnet and display the transaction hash.
Note: This tool does not give real $SOL or Solana tokens. It is only for testing purposes on Devnet.
Code
The main component of this React application is the SolAirdrop component, which is located in src/SolAirdrop.js:
Issues
If you have found a bug or have a feature request, please open an issue on Github.
Contributing
Contributions are always welcome! If you want to contribute to this project, please follow these steps:
- Fork the repository
- Make your changes
- Test your changes
- Submit a pull request