GithubHelp home page GithubHelp logo

nd0ut / cryptowallet-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yerofey/cryptowallet-cli

0.0 0.0 0.0 433 KB

CW is a crypto wallet generator CLI tool for a lot of blockchains: Bitcoin, Ethereum, Binance Smart Chain and many others

Home Page: https://www.npmjs.com/package/@yerofey/cryptowallet-cli

License: MIT License

JavaScript 100.00%

cryptowallet-cli's Introduction

cryptowallet-cli GitHub stars

NPM package yearly downloads Minimum Node.js version NPM package version

Crypto wallet generator CLI tool (currently works only on Mac and Linux, sorry Windows users)

Screenshot

Features

  • Generate new crypto wallet offline
  • Generate wallet address with prefix (string at the start): [-p]
  • Generate wallet address with suffix (string at the end): [-s]
  • Generate wallet with different formats (for Bitcoin: Legacy, SegWit, Bech32; for BNB: BEP2, BEP20): [-f]
  • Generate wallet from your desired mnemonic string: [-m]
  • Generate only mnemonic string: [-m]
  • Generate a lot of wallets at once: [-n]
  • Save result into a CSV file: [--csv]

check the Options section for all supported commands

Install

# via NPM
$ npm i -g @yerofey/cryptowallet-cli

# via PNPM
$ pnpm add -g @yerofey/cryptowallet-cli

# via Yarn
$ yarn global add @yerofey/cryptowallet-cli

Usage

# generate random ERC-like wallet (ETH, BNB, POLYGON, ...)
$ cw

# generate random BTC wallet (default format: bech32 - "bc1q...")
$ cw -c btc

# 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 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

# generate just a mnemonic string (12 words) to import in any wallet app
$ cw -m

# list all supported blockchains
$ cw -l

Blockchains supported

  • BTC (Bitcoin) [legacy, segwit, bech32]
  • ETH (Ethereum)
  • BNB (Binance Coin) [BEP2, BEP20, ERC20]
  • 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)

all other cryptos that are tokens in the ecosystems like Ethereum, Binance Smart Chain or Polygon and others (EVM compatible) are supported too, you just need to create ERC wallet (that is set by default)

Options

  • -b or -c or --chain: Specify the blockchain ticker to generate a wallet for
  • -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: Use a bip39 mnemonic phrase (if is set) to generate wallet, or leave it empty to generate new one
  • -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 only csv supported) to output the generated data

Node.js supported versions

  • v16.x ✅
  • v17.x ⛔
  • v18.x ✅
  • v19.x ✅

tested on Mac M1

TODO

  • Windows support
  • SegWit Bech32 wallet address support for all Bitcoin forks
  • More EVM compatible cryptos
  • tests

Author

Yerofey S.

Contact me: Email, Telegram

License

MIT

cryptowallet-cli's People

Contributors

dependabot[bot] avatar nd0ut avatar yerofey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.