8000 GitHub - tmlnv/sanity: Solana vanity address generator with a beautiful and intuitive CLI & TUI.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ sanity Public

Solana vanity address generator with a beautiful and intuitive CLI & TUI.

License

Notifications You must be signed in to change notification settings

tmlnv/sanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanity

Build codecov

Solana vanity address generator with a beautiful and intuitive CLI & TUI. Generate custom Solana wallet addresses with your desired prefix, suffix & regexp.

demo_tui

Features

  • Intuitive Terminal User Interface (TUI)
  • Command Line Interface (CLI) support
  • Concurrent address generation
  • Customizable search parameters
  • Automatic private key saving
  • Timeout configuration

Installation

go install github.com/tmlnv/sanity@latest

Or clone and build from source:

git clone https://github.com/tmlnv/sanity.git
cd sanity
go build -o sanity ./cmd/sanity

Usage

TUI Mode

Simply run the program without any flags to enter TUI mode:

./sanity

In TUI mode, you can:

  1. Enter your desired address prefix
  2. Specify the number of addresses to generate
  3. Set the number of concurrent workers (defaults to CPU cores if left empty)
  4. Configure a timeout duration (e.g., "30s", "5m", "1h")

Use Tab/Shift+Tab or Up/Down arrows to navigate between fields.

CLI Mode

Run with flags for CLI mode:

./sanity [-prefix <prefix>] [-suffix <suffix>] [-regexp <pattern>] [-count <number>] [-workers <workers>] [-timeout <duration>]

Examples:

# Generate address with prefix
sanity -prefix 123 -count 1 -workers 4 -timeout 5m

# Generate address with suffix
sanity -suffix 123 -count 2

# Generate address with both prefix and suffix
sanity -prefix 123 -suffix 321

# Generate address matching regular expression
sanity -regexp '^123.*321$' -timeout 10m

Options:

  • -prefix: Desired prefix for the address
  • -suffix: Desired suffix for the address
  • -regexp: Regular expression pattern to match
  • -count: Number of addresses to generate (default: 1)
  • -workers: Number of concurrent workers (default: CPU cores)
  • -timeout: Maximum duration to search (e.g., "30s", "5m", "1h")

Security

Generated private keys are automatically saved to a file in your current directory. Keep these keys secure and never share them.

Disclaimer

This tool is for educational and experimental purposes only. Please be aware that:

  • Generated addresses and private keys should be thoroughly verified before use
  • Always follow best security practices when handling cryptocurrency wallets
  • The author is not responsible for anything

TODO

  • Validate address input to be compatible with Solana to not waste resources trying to find the impossible one.
  • Suffix
  • Regexp
  • Timeout input proper validation.
  • Validate timeout from pure number for CLI
  • Case sensitivity
  • CLI help
  • Tests

About

Solana vanity address generator with a beautiful and intuitive CLI & TUI.

Topics

Reso 4A8A urces

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0