Code samples and demos done while learning the NEAR protocol written in Typescript.
Install dependencies:
npm iCopy .env.sample to .env and update the values so the script can get your testnet account keys.
There are several ways to get the account keys but the most straightforward is using the NEAR CLI (docs) then setting .env to use your-local stored keys.
Get account balance:
npm start