Prerequisites:
- Have solana installed globally
- Node 15 installed (preferably with nvm)
Steps to run:
- First as always:
npm install
- Create a
.env
file with the following line in it:CONNECTION_ENDPOINT='http://localhost:8899/'
- In a separate terminal run:
solana-test-validator
- Back in the original terminal, run this to fill the accounts first:
npm run airdrop
- Then to transfer, run:
npm start
The program should run until the transaction achieves "root" commitment, and then output the resulting balances