Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from web3 import Web3
from tqdm import tqdm
w3 = Web3()
# fill your list with possible vanity words, do or do not include the 0x
vanity = ['0xb00b', '0xl337']
# this is just timer
t = tqdm()
while True:
# update
# w3 creates account
account = w3.eth.account.create()
# tell it where you want the vanity part to be
pub_key = str(account.address)[0:6]
important to check this way and not the other, if you do a check for each item of the list performance is
super fucked
if pub_key in vanity:
print(f'found this account: {pub_key, account.privateKey}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment