This project is a bot for the Winnode project that periodically sends $NIL tokens to generated Nillion addresses.
- Node.js and npm installed on your machine. You can download and install them from Node.js official website.
-
Clone the repository:
git clone https://github.com/Winnode/nillion.git
-
Navigate to the project directory:
cd nillion
-
Initialize a new npm project if you haven't already:
npm init -y
-
Install the required packages:
npm install dotenv bip39 @cosmjs/proto-signing @cosmjs/stargate
-
If you don't have
ts-node
andtypescript
installed, you can install them globally:npm install -g ts-node typescript
Or as dev dependencies in your project:
npm install --save-dev ts-node typescript
-
Create a
.env
file in the root directory of your project:touch .env
-
Add your mnemonic phrases to the
.env
file. Example:MNEMONIC1="your mnemonic phrase 1" MNEMONIC2="your mnemonic phrase 2" MNEMONIC3="your mnemonic phrase 3" # Add more mnemonics as needed
-
Create a
recipients.txt
file in the root directory of your project:touch recipients.txt
-
Add recipient addresses to the
recipients.txt
file, one per line. Example:nillion1fjg703wl2hzfyp0qhums37melfdrcut4wc24ze nillion1xeg9pupt2qpgmyx5wn8awzul0k4p3l7wpu06zc
You can run the TypeScript script using ts-node
:
ts-node src/index.ts