README
ΒΆ
hdwallet-cli
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:
- Never share your mnemonic β anyone with access can steal your funds
- Exported files contain private keys β store them securely (encrypted)
- File permissions β exported files are created with 0600 (owner only)
- Test first β always verify addresses with small amounts
- Use hardware wallets β for large amounts, use Ledger/Trezor
Dependencies
- go-hdwallet β HD wallet library
- go-bip32 β BIP32 implementation
- go-bip39 β BIP39 mnemonic
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
ΒΆ
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.