This app allows anyone to set up a Solana faucet.
Fill up your NEXT_PUBLIC_FAUCET_ADDRESS with some SOL, set the secret key and the airdrop amount and you're all set!
- Generate your faucet key
solana-keygen new --no-bip39-passphrase -o faucetkey.json- Copy faucetkey.json (privatekey) and paste it into SENDER_SECRET_KEY on vercel (or in your .env.development.local)
cat faucetkey.json- Copy faucet address (pubkey) and paste it into NEXT_PUBLIC_FAUCET_ADDRESS
solana-keygen pubkey faucetkey.json-
Set NEXT_PUBLIC_AIRDROP_AMOUNT
-
Deploy
You need three environment variables in your .env.development.local file and on vercel:
- NEXT_PUBLIC_FAUCET_ADDRESS - the address of your faucet account
- SENDER_SECRET_KEY - the secret key to allow the app to send airdrops from the faucet account above
- NEXT_PUBLIC_AIRDROP_AMOUNT - the amount of SOL to send in every airdrop
You can deploy your own faucet here:
Or, run on localhost:
npm i
npm run devOpen http://localhost:3000 with your browser to see the result.
This application uses data from the Electric Capital Crypto Ecosystems project to verify GitHub repositories associated with the Solana ecosystem.
|
Data Source: Electric Capital Crypto Ecosystems
If you're working in open source crypto, submit your repository here to be counted. |
The repository data is used to validate GitHub users requesting airdrops by checking if they contribute to the Solana ecosystem.
To update the ecosystem data in your deployment, run:
# First, download the latest solana.jsonl file
# Then, run the update script
npx tsx scripts/update_ecosystem_data.ts