Skip to content

CLI tool for generating Cosmos vanity addresses

License

Notifications You must be signed in to change notification settings

hukkin/cosmosvanity

Repository files navigation

Build Status codecov.io

cosmosvanity

Version 1.0.0

CLI tool for generating Cosmos vanity addresses

Features

  • Generate Cosmos bech32 vanity addresses
  • Use all CPU cores
  • Specify a substring that the addresses must
    • start with
    • end with
    • contain
  • Set required minimum amount of letters (a-z) or digits (0-9) in the addresses
  • Binaries built for Linux, macOS and Windows

Installing

Download the latest binary release from the Releases page. Alternatively, build from source yourself.

Usage examples

Find an address that starts with "00000" (e.g. cosmos100000v3fpv4qg2a9ea6sj70gykxpt63wgjen2p)

./cosmosvanity --startswith 00000

Find an address that ends with "8888" (e.g. cosmos134dck5uddzjure8pyprmmqat96k3jlypn28888)

./cosmosvanity --endswith 8888

Find an address containing the substring "gener" (e.g. cosmos1z39wgener7azgh22s5a3pyswtnjkx2w0hvn3rv)

./cosmosvanity --contains gener

Find an address consisting of letters only (e.g. cosmos1rfqkejeaxlxwtjxucnrathlzgnvgcgldzmuxxe)

./cosmosvanity --letters 38

Find an address with at least 26 digits (e.g. cosmos1r573c4086585u084926726x535y3k2ktxpr88l)

./cosmosvanity --digits 26

Generate 5 addresses (the default is 1)

./cosmosvanity -n 5

Restrict to using only 1 CPU thread. This value defaults to the number of CPUs available.

./cosmosvanity --cpus 1

Combine flags introduced above

./cosmosvanity --contains 8888 --startswith a --endswith c