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.
- 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
.envfile.
- 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
BigIntarithmetic to avoid precision loss.
- Node.js: v18.0.0 or higher
- npm: v8.0.0 or higher
-
Clone the Repository:
git clone https://github.com/naMqe-h/injective-coins-tools.git cd injective-coins-tools -
Install Dependencies:
npm install
-
Prepare Environment Configuration: Copy the example environment template:
cp .env.example .env
(You can also leave the
.envvalues blank and configure your wallet directly inside the CLI).
Build and run the interactive CLI with a single command:
npm run cliUse the arrow keys and Enter to navigate through the interactive menus.
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=mainnetThis project is licensed under the MIT License. See the LICENSE file for details.