Basic Solana Programs

  • This repo is good for people who are learning @solana/web3.js

Files

  1. index.js connects to devnet and grabs validators.

    • Solana is proof of stake a validator, validates transactions.
  2. airdropSOL.js creates wallet and airdrops SOL.

  3. staking.js creates and account for staking and moves funds.

  4. delegate.js creats accounts + delegates the funds to a validator.

  5. getSpecificDelegator.js creats accounts + delegates the funds to a specific delegator.

  6. deactivateStake.js - sets account to inactivate

  7. withdraw.js - allows withdraw of SOL.

Commands to run

  1. Install node:

    npm i

  2. Run file:

    ```node fileName``