The link for the transaction is here.
- This repo is a collection of scripts in typescript files that demonstrate different actions that can be taken on the solana blockchain
- after cloning the repo, run
yarn
ornpm i
in your terminal to install the necessary dependencies
- Script Location:
keygen.ts
- Command: Run the script using
yarn keygen
ornpm run keygen
in your terminal. - Output Handling: Replace the data from the console log for the secret key into a file called
dev-wallet.json
. - Security Note: Add the
dev-wallet.json
file to your.gitignore
file to prevent it from being made public.
- Script Location:
airdrop.ts
- Command: Run
yarn airdrop
ornpm run airdrop
in your terminal to airdrop some SOL into the wallet created in the previous step.
- Script Location:
transfer.ts
- Functionality: The script will generate a new key pair and send 1 SOL to the wallet.
- Command: Run
yarn transfer
ornpm run transfer
in your terminal to execute the code.
- Script Location:
emptyWallet.ts
- Functionality: This script will use a small portion for the transaction fee and then send the rest of the SOL from one wallet to a newly created wallet.
- Command: Run
yarn emptyWallet
ornpm run emptyWallet
in your terminal.
- Script Location:
spl_init.ts
- Functionality: This script will create a mint for an SPL token and will return a mint address that can be found on the explorer
- Command: Run
yarn spl_init
ornpm run spl_init
in your terminal.
- Script Location:
spl_mint.ts
- Functionality: This script will actually mint a certain amount of SPL tokens and will return a mint signature that can be found on the explorer
- Command: Run
yarn spl_mint
ornpm run spl_mint
in your terminal.
- Script Location:
spl_transfer.ts
- Functionality: This script will transfer a certain amount of SPL tokens from the newly created mint account to a newly generated wallet
- Command: Run
yarn spl_transfer
ornpm run spl_transfer
in your terminal.
- Script Location:
enroll.ts
- Functionality: This script executes the program according to the IDL created by WBA as our final project to connect a githib account. The returned link for the transaction is found at the top of this
README.md
- Command: Run
yarn enroll
ornpm run enroll
in your terminal.