Commonly used NEAR scripts built with near-api-js
Clone project and install dependencies
git clone https://github.com/near-x/near-scripts
cd near-scripts
yarn
Login with near-cli
.
near login
Configure environment variables
export NEAR_ENV=testnet
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