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 or download the source code.
-
Navigate to the project directory:
cd path/to/your/project
-
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. -
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
You can run the TypeScript script using ts-node
:
ts-node path/to/your/script.ts