- This repo is good for people who are learning
@solana/web3.js
-
index.js
connects to devnet and grabs validators.- Solana is proof of stake a validator, validates transactions.
-
airdropSOL.js
creates wallet and airdrops SOL. -
staking.js
creates and account for staking and moves funds. -
delegate.js
creats accounts + delegates the funds to a validator. -
getSpecificDelegator.js
creats accounts + delegates the funds to a specific delegator. -
deactivateStake.js
- sets account to inactivate -
withdraw.js
- allows withdraw of SOL.
-
Install node:
npm i
-
Run file:
```node fileName``