This project demonstrates a simple Solana Airdrop application, allowing users to initiate an airdrop by providing a Solana public key.
-
Clone this repository:
git clone https://github.com/your-username/solana-airdrop.git cd solana-airdrop
-
Download the Solana web3.js library and save it as
web3.js
in the project folder. You can download it from unpkg.com. -
Open the
index.html
file in your preferred text editor and update the script import to use the locally hostedweb3.js
file:<script src="web3.js"></script> <script src="main.js" type="module"></script>
-
Run the application:
Open
index.html
in a web browser.
- The
submitForm
function inmain.js
uses the Solana web3.js library to request an airdrop for the specified Solana public key.
- Solana Web3.js
- HTML
Contributions are welcome! Please create an issue or submit a pull request.
This project is licensed under the MIT License.