Exemplo n.º 1
0
        public virtual string BinaryAddress(string aAddress)
        {
            string lResult = CoinScriptAddress.AddressToBinString(aAddress, Network);

            if (string.IsNullOrEmpty(lResult))
            {
                throw new ArgumentException($"The address '{aAddress}' for the {Network.NetworkName} network is invalid.");
            }
            return(lResult);
        }
Exemplo n.º 2
0
 public virtual bool IsValidAddress(string aAddress)
 {
     return(CoinScriptAddress.IsValid(aAddress, Network));
 }