[Airdrop] (https://explorer.solana.com/tx/5P8WMyWhGDko4k5f3LZyThu7WSmyJdNxwX7f94E5d1ZzLJEguAKyHUFET8qW2km61kqtD2A2akidoTQT88cC8FKJ?cluster=devnet)
[TransferSOL] (https://explorer.solana.com/tx/3VPaD1pw23yJUJY1E9ySozTRswm2gYTxFyUNdXdbrRuqcD5iSRfmR1BjP2e1cnMy45okgLYs5ELrrj2oyhT3oJ1U?cluster=devnet)
[TransferALLRemainingSOL] (https://explorer.solana.com/tx/3ojnTYyJaFhohA3XRMdanRnpcpJBEvi6uPqrUjE65AbfKN3aWnZooPM4NcFMjqzryP1NLoxEy3Pkp9veqoYfxGvD?cluster=devnet)
[Turbin3EnrollmentdApp] (https://explorer.solana.com/tx/4UydVMRJwgNAXsCH8xNASvGSCzamJhoQU5Ys6odb22x9aVsPWKgjJnNv7sxss4cCGBNstF9V3QvnYfj2BcbnQVpD?cluster=devnet)
In this project you will:
- Learn how to use @solana/web3.js to create a new keypair
- Use our Public Key to airdrop ourselves some Solana devnet tokens
- Make Solana transfers on devnet
- Empty your devnet wallet into your Turbin3 wallet
- Use our Turbin3 Private Key to enroll in the Turbin3 enrollment dApp
To get started, we're going to create a keygen script and an airdrop script for our account.
Start by opening up your Terminal. We're going to use yarn to create a new Typescript project.
mkdir airdrop && cd airdrop
yarn init -y
Now that we have our new project initialized, we're going to go ahead and add typescript, bs58 and @solana/web3.jsalong with generating a tsconfig.js configuration file.
yarn add @types/node typescript @solana/web3.js bs58
yarn add -D ts-node
touch keygen.ts
touch airdrop.ts
touch transfer.ts
touch enroll.ts
yarn tsc --init --rootDir ./ --outDir ./dist --esModuleInterop --lib ES2019 --module commonjs --resolveJsonModule true --noImplicitAny true
Code the ./keygen.ts file
yarn keygen.ts