Пример #1
0
def create_wallet():
    wallets = Wallets()
    wallet = Wallet()
    address = wallet.address
    wallets.add_wallet(address, wallet)
    wallets.save_to_file()

    print("Your new address: {}".format(address))
Пример #2
0
def AddAddress(address, wallet):
    # Add address to wallet
    wallets = Wallets()
    wallets.add_wallet(address, wallet)
    return wallets.save_to_file()