Skip to content

Instantly share code, notes, and snippets.

@Blazing-Mike
Created October 14, 2022 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blazing-Mike/32beabb50ff17668501ea398b08c4dfe to your computer and use it in GitHub Desktop.
Save Blazing-Mike/32beabb50ff17668501ea398b08c4dfe to your computer and use it in GitHub Desktop.
from bitcoinlib.wallets import Wallet
from bitcoinlib.mnemonic import *
passphrase = Mnemonic().generate()
print(passphrase)
w = Wallet.create("MyFirstWallet", witness_type='segwit', keys=passphrase, network='bitcoin')
WalletKeys = (w.get_keys(number_of_keys=10))
for k in WalletKeys:
print(k.address)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment