Skip to content

mishalturkane/solana-turbin3-ts-Pre-requisites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana-Turbin3-ts-Pre-requisites

[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:

  1. Learn how to use @solana/web3.js to create a new keypair
  2. Use our Public Key to airdrop ourselves some Solana devnet tokens
  3. Make Solana transfers on devnet
  4. Empty your devnet wallet into your Turbin3 wallet
  5. Use our Turbin3 Private Key to enroll in the Turbin3 enrollment dApp

Generate new Keypair

To get started, we're going to create a keygen script and an airdrop script for our account.

Setting up

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

Generating a Keypair

Code the ./keygen.ts file

yarn keygen.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published