hdwallet-cli

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 8 Imported by: 0

README ΒΆ

hdwallet-cli

Go Version License Status

Multi-chain HD Wallet Generator CLI

A command-line tool for generating hierarchical deterministic (HD) wallets across multiple cryptocurrency networks.

Features

  • πŸ” Generate new BIP39 mnemonics (12/15/18/21/24 words)
  • πŸ”‘ Support for BIP39 passphrase
  • ⛓️ Multi-chain support (BTC, ETH, SOL, TON, TRX, LTC, DOGE, BCH, XRP, DASH, ZEC, XLM, DOT, KSM, SUI, XMR)
  • πŸ“ Export to JSON and CSV
  • 🎨 Colored terminal output
  • πŸ”’ Generate multiple addresses at once
  • πŸ” Select specific networks

Installation

From source
go install github.com/X-Vlad/hdwallet-cli@latest
Build locally
git clone https://github.com/X-Vlad/hdwallet-cli.git
cd hdwallet-cli
go build -o hdwallet-cli .

Usage

Generate new wallet
# 12-word mnemonic (default)
hdwallet-cli -new

# 24-word mnemonic
hdwallet-cli -new -words 24

# With passphrase
hdwallet-cli -new -password "my secret passphrase"
Use existing mnemonic
hdwallet-cli -mnemonic "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
Select networks
# Only Bitcoin and Ethereum
hdwallet-cli -new -network "btc,eth"

# Only Solana
hdwallet-cli -new -network sol

# All networks (default)
hdwallet-cli -new -network all
Generate multiple addresses
# Generate 5 addresses per network
hdwallet-cli -mnemonic "..." -count 5

# Start from index 10
hdwallet-cli -mnemonic "..." -index 10
Export
# Export to JSON file
hdwallet-cli -new -export wallet.json

# Export to CSV file
hdwallet-cli -new -csv wallet.csv

# Both
hdwallet-cli -new -export wallet.json -csv wallet.csv

# JSON to stdout (for scripting)
hdwallet-cli -new -json
Other options
# Quiet mode (addresses only)
hdwallet-cli -new -quiet

# Disable colors
hdwallet-cli -new -no-color

# Show help
hdwallet-cli -help

# Show version
hdwallet-cli -version

Example Output

══════════════════════════════════════════════════════════════════════
  πŸ”‘ HD WALLET GENERATOR v1.0.0
══════════════════════════════════════════════════════════════════════

πŸ“ Mnemonic:
   abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about

Index: 0

πŸ”Ά Bitcoin (Native SegWit)
   Address:  bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu
   Path:     m/84'/0'/0'/0/0
   PrivKey:  c9bdb49cfbaedca2...

⚑ Ethereum
   Address:  0x9858EfFD232B4033E47d90003D41EC34EcaEda94
   Path:     m/44'/60'/0'/0/0
   PrivKey:  1ab42cc412b618bd...

β˜€οΈ Solana (Phantom)
   Address:  5yNbxzWdHhULcE6gR...
   Path:     m/44'/501'/0'/0'
   PrivKey:  a7b3c4d5e6f7...

══════════════════════════════════════════════════════════════════════
⚠️  SECURITY: Never share your mnemonic or private keys!
══════════════════════════════════════════════════════════════════════

Supported Networks

Network Key Address Format Standards
Bitcoin btc bc1... (SegWit), bc1p... (Taproot), 3... (SegWit Compat), 1... (Legacy) BIP44/49/84/86
Ethereum eth 0x... (all EVM chains) BIP44
Solana sol Base58 (Phantom & Trust) SLIP-0010
Tron trx T... BIP44
TON ton EQ.../UQ... BIP39+SLIP
Litecoin ltc ltc1... (SegWit), M... (SegWit Compat), L... (Legacy) BIP44/49/84
Dogecoin doge D... BIP44
Bitcoin Cash bch bitcoincash:q... BIP44
Ripple xrp r... BIP44
Dash dash X... BIP44
Zcash zec t1... BIP44
Stellar xlm G... SLIP-0010
Polkadot dot 1... BIP44
Kusama ksm C.../D.../E... BIP44
SUI sui 0x... SLIP-0010
Monero xmr 4... BIP44

JSON Output Format

{
  "mnemonic": "abandon abandon abandon...",
  "password": "",
  "index": 0,
  "wallets": {
    "btc": {
      "network": "btc",
      "coin": "Bitcoin",
      "address": "bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu",
      "private_key": "c9bdb49cfbaedca2...",
      "wif": "L4p2b9VAf8k5aUahF1JCJUzZkgNEA...",
      "path": "m/84'/0'/0'/0/0"
    },
    "eth": {
      "network": "eth",
      "coin": "Ethereum",
      "address": "0x9858EfFD232B4033E47d90003D41EC34EcaEda94",
      "private_key": "1ab42cc412b618bd...",
      "path": "m/44'/60'/0'/0/0"
    }
  }
}

Security

⚠️ Important security notes:

  1. Never share your mnemonic β€” anyone with access can steal your funds
  2. Exported files contain private keys β€” store them securely (encrypted)
  3. File permissions β€” exported files are created with 0600 (owner only)
  4. Test first β€” always verify addresses with small amounts
  5. Use hardware wallets β€” for large amounts, use Ledger/Trezor

Dependencies

License

MIT License. See LICENSE for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Donate

If this project was helpful, you can support development:

Network Address
BTC bc1q3l4jcnplvcmvqh26pfh3qdkrw4flqevemsfed8
ETH, BSC, ... (EVM) 0x49999CD2B8F7Bc9309e5929a79799eA55a17e6Ce
Tron TDxyjiittx9zzkHd25wmM12mvutTKBhZKS
Solana ahiiQWz9eRLpFRpEFSPf7See7J46YBFhMgsADNmGRgt
TON UQCfsCHBWq3_kD0D_mkfetuwIgACoSJ8YsYTZPKKkMprDlLD

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL