This script demonstrates the following functionalities:
- Generate a new Solana wallet (Keypair) and get the public and private keys.
- Check the wallet balance using public key.
- Perform an airdrop of SOL to the wallet address from the configured Solana cluster.
Before running the airdrop program, make sure you have the following prerequisites:
- Solana CLI: Install the Solana Command-Line Tools.
- Node.js: Install Node.js on your machine.
- Clone the repository:
git clone https://github.com/sauravrao637/solana_airdrop.git
- Navigate to the project directory:
cd solana_airdrop
- Install the required dependencies:
npm install
- Run the script:
node index.js