def check_sender(tx: dict, sender: str) -> bool:
    """
    :param tx: transaction dictionary
    :param sender: string containing sender's address
    :return: boolean
    """
    if tx["events"][0]["sub"][0]["sender"][0]["account"]["id"] == sender:
        return True

    return False