pygeek_stellar/utils/stellar.py
def is_address_valid(address):
    """
    Checks if a given Stellar address is valid. It does not check if it exists on the Stellar
    network, only if it is correctly formatted.
    :param str address: address to be evaluated.
    :return: Returns true if the given address is valid and false otherwise.
    :rtype: bool
    """
    if address is None:
        return False
    try:
        stellar_base.utils.decode_check('account', address)
        return True
    except DecodeError:
        return False

    Checks if a given Stellar address is valid. It does not check if it exists on the Stellar
    network, only if it is correctly formatted.
    :param str address: address to be evaluated.
    :return: Returns true if the given address is valid and false otherwise.
    :rtype: bool
    
Checks if a given Stellar address is valid. It does not check if it exists on the Stellar
network, only if it is correctly formatted.
Checks if a given Stellar address is valid . It does not check if it exists on the Stellar network only if it is correctly formatted .
def is_address_valid(address):
    if address is None:
        return False
    try:
        stellar_base.utils.decode_check('account', address)
        return True
    except DecodeError:
        return False
def is_address_valid ( address ) : if address is None : return False try : stellar_base . utils . decode_check ( 'account' , address ) return True except DecodeError : return False
Checks if a given Stellar address is valid.
Checks if a given Stellar address is valid .
"""
    Checks if a given Stellar address is valid. It does not check if it exists on the Stellar
    network, only if it is correctly formatted.
    :param str address: address to be evaluated.
    :return: Returns true if the given address is valid and false otherwise.
    :rtype: bool
    """
Returns true if the given address is valid and false otherwise.
Returns true if the given address is valid and false otherwise .
bool
address
address to be evaluated.
address to be evaluated .