src/Identities/Address.php
public static function validate(string $address, $network = null): bool
    {
        try {
            $addressCreator = new AddressCreator();
            $addressCreator->fromString($address, $network);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public static function validate(string $address, $network = null): bool
    {
        try {
            $addressCreator = new AddressCreator();
            $addressCreator->fromString($address, $network);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public static function validate ( string $ address , $ network = null ) : bool { try { $ addressCreator = new AddressCreator ( ) ; $ addressCreator -> fromString ( $ address , $ network ) ; return true ; } catch ( \ Exception $ e ) { return false ; } }
Validate the given address.

@param string                                                 $address
@param \ArkEcosystem\Crypto\Networks\AbstractNetwork|int|null $network

@return bool
Validate the given address .