Skip to content

Common useful NEAR scripts in JavaScript, built with near-api-js

License

Notifications You must be signed in to change notification settings

near-x/near-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAR Scripts

Commonly used NEAR scripts built with near-api-js

Install

Clone project and install dependencies

  1. git clone https://github.com/near-x/near-scripts
  2. cd near-scripts
  3. yarn

Login

Login with near-cli.

near login

Run Scripts

Configure environment variables

  1. export NEAR_ENV=testnet
  2. export NEAR_ACCOUNT=<your account>

Run a specific script

  • Send Airdrop / Redpacket in batch: node src/bulk-airdrop.js
  • Transfer NEAR to a specific account: node src/transfer.js
  • Distribute NEAR tokens in batch: node src/bulk-transfer.js

About

Common useful NEAR scripts in JavaScript, built with near-api-js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published