Bronze_Badges/seun-Choice-Coin-Python/helpers.py
def create_option_account(escrow_private_key: str, escrow_address: str, client) -> str:
    """Creates an account for option."""

    # This is the amount of Algo to fund the account with. The unit is microAlgos.
    AMOUNT = 1000000
    private_key, address = account.generate_account()

    is_successful = fund_address(AMOUNT, address, escrow_address, escrow_private_key, client)
    if not is_successful:
        raise Exception("Funding Failed!")

    is_optin_successful = opt_in_to_vote(private_key, address, client)
    if not is_optin_successful:
        raise Exception("Vote Coin Opt In Failed!")

    return address
Creates an account for option.
Creates an account for option.
Creates an account for option .
def create_option_account(escrow_private_key: str, escrow_address: str, client) -> str:
    AMOUNT = 1000000
    private_key, address = account.generate_account()
    is_successful = fund_address(AMOUNT, address, escrow_address, escrow_private_key, client)
    if not is_successful:
        raise Exception("Funding Failed!")
    is_optin_successful = opt_in_to_vote(private_key, address, client)
    if not is_optin_successful:
        raise Exception("Vote Coin Opt In Failed!")
    return address
def create_option_account ( escrow_private_key : str , escrow_address : str , client ) -> str : AMOUNT = 1000000 private_key , address = account . generate_account ( ) is_successful = fund_address ( AMOUNT , address , escrow_address , escrow_private_key , client ) if not is_successful : raise Exception ( "Funding Failed!" ) is_optin_successful = opt_in_to_vote ( private_key , address , client ) if not is_optin_successful : raise Exception ( "Vote Coin Opt In Failed!" ) return address
Creates an account for option.
Creates an account for option .
"""Creates an account for option.""" # This is the amount of Algo to fund the account with. The unit is microAlgos.
escrow_private_key
str
escrow_address
str
client