Skip to main content

Module vanity

Module vanity 

Source

StructsΒ§

Matcher πŸ”’
Optional start and end patterns an address must satisfy.
VanityArgs
CLI arguments for cast wallet vanity.
WalletData πŸ”’
WalletData contains address and private_key information for a wallet.
Wallets πŸ”’
Wallets is a collection of WalletData.

EnumsΒ§

Pattern πŸ”’
A vanity pattern: an exact byte prefix/suffix, or a regex over the lowercase hex address.

FunctionsΒ§

find_vanity πŸ”’
Generates random wallets in parallel until matcher matches the wallet address, or the contract address it creates at nonce when one is given.
parse_pattern πŸ”’
save_wallet_to_file πŸ”’
Saves the specified wallet to a β€˜vanity_addresses.json’ file at the given save_path. If the file exists, the wallet data is appended to the existing content; otherwise, a new file is created.