def is_valid_btc_address(addr: str) -> bool:
    try:
        res = coinaddrvalidator.validate("btc", addr).valid
        return res
    except Exception as e:
        print(e)
        return False
def has_btc_address_positive_balance(addr: str) -> bool:
    try:
        res = coinaddrvalidator.validate("btc", addr).valid
        if res == True:
            balance = blockcypher.get_total_balance(addr)
            if balance > 0:
                return True
            else:
                return False
        else:
            return False
    except Exception as e:
        return False
def is_valid_dash_address(addr: str) -> bool:
    try:
        res = coinaddrvalidator.validate("dash", addr).valid
        return res
    except Exception as e:
        return False
Exemple #4
0
def is_valid_stellar_address(addr: str) -> bool:
    try:
        res = coinaddrvalidator.validate("xlm", addr).valid
        return res
    except Exception as e:
        return False