A simple script to enroll in the Romanian Solana Builders Program by registering your Github account on-chain.
- Generate a Solana keypair for development
- Get some SOL tokens from the devnet faucet
- Register your Github account on-chain
- Complete the prerequisites for the Romanian Solana Builders Program
- Clone this repository:
git clone https://github.com/First-Romanian-Solana-Developer-Program/prereq-task.git
cd prereq-task- Install dependencies:
npm installExecute the script with:
npm run startThe script will:
- Generate a new keypair (or use existing one from
keypair.json) - Request an airdrop of 1 SOL from devnet
- Prompt for your Github username
- Register your account on-chain
If successful, you'll see a confirmation message and a link to view your transaction on Solana Explorer.
~/projects/solana-developers-program/prereqs main* ❯ npm start
> prereqs@1.0.0 start
> ts-node ./index.ts
Loading keypair from /Users/danielpavel/projects/solana-developers-program/prereqs/keypair.json
(node:91220) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Public key: 6rFtJKc25Tq71hgW8DgAMDaZ9nNiFnyBmEYg7DG8uUEZ
💲 Wallet balance: 1.00
Enter your github account name: gigel
✅ Success! Check out your TX here: https://explorer.solana.com/tx/4o28ajgd9cnhMtsJR4sNpSnhdVtBSwPVRXo2R4zCaB7phLDGuxUvuL2ysiGYvytBqPvmqWbjo5GjDevWhJLf2okg?cluster=devnet
🎉 Congratulations, gigel! You're enrolled in our first Romanian Solana Builders Program