/nillion

Primary LanguageTypeScript

Winnode Project Bot

Description

This project is a bot for the Winnode project that periodically sends $NIL tokens to generated Nillion addresses.

Setup Instructions

Prerequisites

Installation

  1. Clone the repository or download the source code.

  2. Navigate to the project directory:

    cd path/to/your/project
  3. Initialize a new npm project if you haven't already:

    npm init -y
  4. Install the required packages:

    npm install dotenv bip39 @cosmjs/proto-signing @cosmjs/stargate
  5. If you don't have ts-node and typescript 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

Configuration

  1. Create a .env file in the root directory of your project.

  2. 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
    

Running the Script

You can run the TypeScript script using ts-node:

ts-node path/to/your/script.ts