Skip to content

CLI tool for generating Substrate (or Polkadot) vanity addresses

License

Notifications You must be signed in to change notification settings

hukkin/dotvanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crate Build Status - Travis Build status- AppVeyor

dotvanity

Version 1.0.0

CLI tool for generating Substrate (or Polkadot) vanity addresses

Features

  • Generate SS58 encoded vanity addresses using sr25519 keypairs
  • Support address types 0 to 127 (includes Polkadot, Kusama, generic Substrate etc.). Defaults to Polkadot mainnet (address type 0).
  • Specify number of CPU cores used
  • Specify a substring that the addresses must
    • start with
    • end with
    • contain
  • Set a required minimum amount of letters (a-z or A-Z) or digits (0-9) that the address must contain
  • Output a corresponding BIP39 mnemonic phrase along with the address
  • Binaries built for Linux, macOS and Windows

Installing

Download the latest binary release from the Releases page.

Alternatively, if you have cargo installed, build and install by running

cargo install dotvanity

Usage examples

Find an address that starts with "11" (e.g. 11Tvp5FaD2Vf69BS5tgGJio8KBPd6PUSvrn9nyDTCLWnQWw)

dotvanity --startswith 11

Find an address that ends with "zz" (e.g. 1X9fUsYxfJ3qJvGu9wdZNhaKP37Y9Vg1YgsMKgkrDox9Pzz)

dotvanity --endswith zz

Find an address containing the substring "XXXXX" (e.g. 1R6DVtPBh5ZfNHPFoHT4GVUuLwzcbZaVvD4EFXXXXXZMBc3)

dotvanity --contains XXXXX

Find an address with at least 46 letters (e.g. 14KhqiucsPQJYfBQnYYUMTKSNUjwFdFzFGEMyjEUedCpJSFa)

dotvanity --letters 46

Find an address with at least 25 digits (e.g. 148GwY3868mW4vGvrQtq4266CK3165835N593ngW9B57HDBg)

dotvanity --digits 25

Use 5 CPU threads. The default is 1.

dotvanity --cpus 5

Alter the address type. Create a Kusama address (type 2) instead of Polkadot.

dotvanity --type 2

Generate 5 addresses (the default is 1)

dotvanity -n 5

Output a BIP39 mnemonic phrase for found addresses. NOTE: This is resource intensive and makes finding an address a LOT slower.

dotvanity --mnemonic

Combine flags introduced above

dotvanity --startswith 11 --endswith QQ --cpus 3