Crypto wallet generator CLI tool
- [x] Generate brand new crypto wallet address (offline)
- [x] Generate wallet address with prefix (string at the start): [
-p
] (case-insensitive) or [-P
] (case-sensitive) - [x] Generate wallet address with suffix (string at the end): [
-s
] (case-insensitive) or [-S
] (case-sensitive) - [x] Generate wallet with different formats (for Bitcoin: Legacy, SegWit, Bech32; for BNB: BEP2, BEP20): [
-f
] - [x] Generate wallet from your desired mnemonic string: [
-m
] - [x] Generate mnemonic string: [
-m
] or [-m 12
] or [-m 15
] or [-m 18
] or [-m 21
] or [-m 24
] - [x] Generate a lot of wallets at once: [
-n
] - [x] Save result into a CSV file: [
--csv
] - [x] Copy the generated mnemonic to the clipboard: [
-C
or--copy
] - [x] Display some additional "geeky" info: [
-g
]
check the Options section for all supported commands
# via NPM
$ npm i -g @yerofey/cryptowallet-cli
# via PNPM
$ pnpm add -g @yerofey/cryptowallet-cli
# via Yarn
$ yarn global add @yerofey/cryptowallet-cli
# generate random EVM-compatible wallet (for Ethereum, Polygon, any L1/L2 EVM-compatible chain, etc.)
$ cw
# generate random BTC wallet (default format: bech32 - "bc1q...")
$ cw -c btc
# generate random mnemonic string (12 words) to import in any wallet app
$ cw -m
# generate random mnemonic string of a specific length (12, 15, 18, 21 or 24 words)
$ cw -m 12
$ cw -m 15
$ cw -m 18
$ cw -m 21
$ cw -m 24
# generate a wallet from a given mnemonic string
$ cw -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate N random wallets (default coin is ETH/ERC-like)
$ cw -n 10
# generate random ERC-like wallet with desired prefix
$ cw -p aaa
# generate random BTC wallet with desired prefix (case-insensitive)
$ cw -c BTC -p ABC
# generate random BTC wallet with desired prefix (case-sensitive)
$ cw -c BTC -P abc
# generate random BTC wallet with desired suffix (case-insensitive)
$ cw -c BTC -s ABC
# generate random BTC wallet with desired suffix (case-sensitive)
$ cw -c BTC -S abc
# generate BTC legacy wallet ("1...")
$ cw -c BTC -f legacy
# generate BTC segwit wallet ("3...")
$ cw -c BTC -f segwit
# generate BTC bech32 wallet from mnemonic string
$ cw -c BTC -f bech32 -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate N of BTC bech32 wallets from mnemonic string
$ cw -c BTC -f bech32 -n 10 -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate BTC Taproot wallet ("bc1p...")
$ cw -c BTC -f taproot
# generate ERC-like wallet from mnemonic string
$ cw -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate BNB (BEP2) wallet from mnemonic string
$ cw -c BNB -f BEP2 -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate BNB (BEP20) wallet from mnemonic string
$ cw -c BNB -f BEP20 -m "radio bright pizza pluck family crawl palm flame forget focus stock stadium"
# generate wallet and save the output into CSV file ("cw-output.csv" by default)
$ cw -c btc --csv
# generate few wallets and save the output into CSV file with custom name "new.csv"
$ cw -c btc -n 10 -D new
# list all supported blockchains
$ cw -l
don't use mnemonic from the examples, it's just an example, generate your own mnemonic string!
-
EVM
(Ethereum, Polygon, Arbitrum, Optimism, L2/L3, etc.) -
BTC
(Bitcoin) [legacy, segwit, bech32, taproot] -
ETH
(Ethereum) -
BNB
(Binance Coin) [BEP2, BEP20, ERC20] -
BSC
(Binance Smart Chain) -
ARB
(Arbitrum) -
OP
(Optimism) -
MATIC
(Polygon) -
SOL
(Solana) -
TON
(The Open Network) -
DOGE
(Dogecoin) [legacy, segwit, bech32] -
BCH
(Bitcoin Cash) -
LTC
(Litecoin) [legacy, segwit, bech32] -
POLYGON
(Polygon) -
TRX
(Tron) -
XTZ
(Tezos) -
DASH
(Dash) -
DCR
(Decred) -
ZEC
(Zcash) -
QTUM
(Qtum) -
BTG
(Bitcoin Gold) -
ONE
(Harmony) -
DGB
(DigiByte) -
RDD
(ReddCoin) -
VTC
(Vertcoin) -
MONA
(MonaCoin) -
NMC
(NameCoin) -
PPC
(PeerCoin) -
BLK
(BlackCoin) -
VIA
(Viacoin) -
NBT
(NIX Bridge Token) -
PLS
(PulseChain)
all other cryptos that are tokens in the ecosystems like Ethereum, Binance Smart Chain or Polygon and others chains are supported as well (L2/L3, etc.)
-
-b
or-c
or--chain
: Specify the blockchain ticker to generate a wallet for -
-C
or--copy
: Copy the generated mnemonic to the clipboard -
-D
or--csv
: Save output into CSV file with custom or default name ("cw-output.csv
") - this is a shorthand for-o csv -F filename
-
-f
or--format
: Specify the blockchain wallet format (for BTC: legacy, segwit, bech32) -
-g
or--geek
: Display some additional "geeky" info -
-l
or--list
: List all supported blockchains -
-m
or--mnemonic [value]
: If used without a value or with12
,18
, or24
, it generates a mnemonic string of that length. If a mnemonic string is provided, it generates a wallet from the given mnemonic. For example:-
$ cw -m
: Generates a default 12-word mnemonic string. -
$ cw -m 12
: Generates a 12-word mnemonic string. -
$ cw -m 15
: Generates a 15-word mnemonic string. -
$ cw -m 18
: Generates an 18-word mnemonic string. -
$ cw -m 21
: Generates a 21-word mnemonic string. -
$ cw -m 24
: Generates a 24-word mnemonic string. -
$ cw -m "your mnemonic phrase here"
: Generates a wallet from the provided mnemonic string.
-
-
-n
or--number
: Specify number of wallets to display (works for HD wallets only, like BTC/LTC/DOGE) -
-p
or--prefix
: Specify desired prefix for the wallet address (case-insensitive) -
-P
or--prefix-sensitive
: Specify desired prefix of the wallet address (case-sensitive) -
-s
or--suffix
: Specify desired suffix for the wallet address (case-insensitive) -
-S
or--suffix-sensitive
: Specify desired suffix for the wallet address (case-sensitive) -
-v
or--version
: Display current version of CW tool
Currently not necessary options:
-
-F
or--filename
: Specify a filename (without extension) to output the data (works only with-o
argument) -
-o
or--output
: Specify a file format (currently onlycsv
supported) to output the generated data
- [x] v16.x ✅
- [ ] v17.x ⛔
- [x] v18.x ✅
- [x] v19.x ✅
- [x] v20.x ✅
- [x] v21.x ✅
tested on Ubuntu 22.04 & Mac M1
- [ ] SegWit Bech32 wallet address support for all Bitcoin forks
- [ ] tests
We're always looking to support more blockchains! If you'd like to add support for a new chain, please follow these steps:
-
Create a Chain JSON File: Create a new
.json
file in thesrc/chains
directory. The name of the file should be the ticker symbol of the blockchain (e.g.,SOL.json
for Solana). -
Define the Chain Properties: Fill the JSON file with the necessary properties of the blockchain. Here's the structure you should follow:
{
"title": "Readable Title of Blockchain",
"network": "Network Type (EVM, Bitcoin-like, etc.)",
"startsWith": "Starting Characters of Wallet Address",
"prefixTest": "Regex Pattern to Test Valid Characters in Prefix",
"apps": ["Array", "of", "Supported", "Wallet", "Apps"],
"flags": ["Array", "of", "Supported", "Features", "like", "m", "n", "p", "s"]
}
-
Add Formats (if applicable): If the blockchain supports multiple wallet formats (like Bitcoin with Legacy, SegWit, Bech32), you can define them under the
formats
key:
"formats": {
"formatName": {
"format": "formatName",
"startsWith": "Starting Characters of Wallet Address",
"prefixTest": "Regex Pattern to Test Valid Characters in Prefix",
"rareSymbols": "Regex Pattern for Rarely Used Symbols",
"path": "Derivation Path (if applicable)",
"purpose": "BIP Purpose (if applicable)",
"apps": ["Array", "of", "Supported", "Wallet", "Apps"],
"flags": ["Array", "of", "Supported", "Features", "like", "m", "n", "p", "s"]
}
// ... other formats
}
-
Submit a Pull Request: Once you've added the new chain file, please submit a pull request to the main repository. Make sure to provide a clear description of the blockchain and the properties you've set.
-
Wait for Review: The maintainers will review your submission. They might ask for changes or additional information. Once everything is set, your contribution will be merged, and the new chain will be supported!
Your contributions are greatly appreciated and help make this tool more versatile and useful for everyone!
Each chain JSON file is structured to provide essential information about the blockchain and how the wallet addresses are generated and formatted. Here's a detailed explanation of each field:
-
title
: The full, readable title of the blockchain. -
network
: The type of network or protocol the blockchain follows (e.g., EVM for Ethereum-compatible chains). -
startsWith
: The set of characters that the wallet address typically starts with. -
prefixTest
: A regular expression pattern that tests for valid characters that can appear in the prefix of a wallet address. -
apps
: An array of supported wallet applications that can be used with the generated addresses. -
flags
: An array of supported features for the wallet generation. Common flags includem
for mnemonic support,n
for generating multiple wallets,p
for prefix support, ands
for suffix support. -
formats
: (Optional) An object defining multiple wallet formats if the blockchain supports more than one format. Each format should specify its unique properties.
By following this structure, the cryptowallet-cli
tool can understand and support wallet generation for a wide array of blockchains.
Feel free to contribute by adding support for more chains, and help in making cryptowallet-cli
a more comprehensive tool for the crypto community!
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository and create a new branch.
- Make your changes and ensure that the code is properly formatted.
- Write tests to cover any new functionality.
- Submit a pull request with a clear description of your changes.
By contributing to this project, you agree to abide by the Code of Conduct.
Thank you for your interest in contributing!
If you find this tool useful and would like to support its development, consider making a donation. Your support is greatly appreciated and helps me dedicate more time to maintain and improve this project.
Donate Crypto:
- Tether (USDT-TRC20):
TCW9eaRWjpivZvnZ5DwgbWxPRpoZNWbuPe
- Bitcoin (BTC):
bc1qcwamquntxshqsjcra6vryftrfd9z57j02g3ywq
- Ethereum (ETH):
0xe3e3ed78d9f8A935a9a0fCE2a7305F2f5DBabAD8
- BNB (BEP20):
0xe3e3ed78d9f8A935a9a0fCE2a7305F2f5DBabAD8
- BNB (BEP2):
bnb1gtxfz4kllltaeekw3edfd496gpa3ukpakvzncq
- SOL:
CWsbNQRxNzAasLd2zfwkEkbBZXKxfoxva14pe8wawUju
- TON:
UQCWDwqtvC_jml2hSf8laNQu4chYVCbHBpkbKbyDdxzM7Ma0
- DOGE (DOGE):
DMAkWQKx1H6ESG3beDBssn5mAAZcwkrYVh
Other Donate Options:
Thank you for your support!