Skip to content

About

An interactive, user-friendly Command Line Interface (CLI) utility built in TypeScript to manage wallets, check portfolio balances, interact with the Injective Token Factory, and send any tokens on the Injective blockchain.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Injective Coins Tools CLI

An interactive, user-friendly Command Line Interface (CLI) utility built in TypeScript to manage wallets, check portfolio balances, interact with the Injective Token Factory, and send any tokens on the Injective blockchain.


Features

  • Wallet Management:
    • Generate a new BIP39 mnemonic phrase and private key.
    • Import wallets from mnemonics or raw hex private keys.
    • Toggle between Injective Mainnet and Testnet sentry networks.
    • Persistently save active wallet configurations to a local .env file.
  • Portfolio Balance Checker:
    • Fetch account balances from the Injective Indexer API.
    • Supports nativ INJ tokens, Token Factory subdenoms, peggy tokens, and others.
    • Check the balance of the configured active wallet or look up any custom address.
  • Token Factory Operations:
    • Launch new tokens: Create a new denom, set metadata (decimals, name, description, symbol), and mint an initial supply in a single combined transaction.
    • Mint/Burn tokens: Increase or decrease the supply of factory denoms you own.
    • Change Token Admin: Securely transfer admin capabilities for a denom to a new address.
  • Send Tokens:
    • Interactively transfer any token owned in your wallet.
    • Dynamic balance retrieval and list selection.
    • Precise input amount validation using BigInt arithmetic to avoid precision loss.

Prerequisites

  • Node.js: v18.0.0 or higher
  • npm: v8.0.0 or higher

Installation

  1. Clone the Repository:

    git clone https://github.com/naMqe-h/injective-coins-tools.git
    cd injective-coins-tools
  2. Install Dependencies:

    npm install
  3. Prepare Environment Configuration: Copy the example environment template:

    cp .env.example .env

    (You can also leave the .env values blank and configure your wallet directly inside the CLI).


Usage

Build and run the interactive CLI with a single command:

npm run cli

Use the arrow keys and Enter to navigate through the interactive menus.


Configuration

The .env file supports the following options:

# Injective hex private key
INJECTIVE_PRIVATE_KEY=

# Injective address
INJECTIVE_ADDRESS=

# Network to connect to: mainnet or testnet
INJECTIVE_NETWORK=mainnet

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

An interactive, user-friendly Command Line Interface (CLI) utility built in TypeScript to manage wallets, check portfolio balances, interact with the Injective Token Factory, and send any tokens on the Injective blockchain.

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages