BitSharper.Address.Address C# (CSharp) Method

Address() public method

Construct an address from parameters and the hash160 form.
Example:

new Address(NetworkParameters.prodNet(), Hex.decode("4a22c3c4cbb31e4d03b15550636762bda0baf85a"));
public Address ( NetworkParameters @params, byte hash160 ) : System
@params NetworkParameters
hash160 byte
return System
        public Address(NetworkParameters @params, byte[] hash160)
            : base(@params.AddressHeader, hash160)
        {
            if (hash160.Length != 20) // 160 = 8 * 20
                throw new ArgumentException("Addresses are 160-bit hashes, so you must provide 20 bytes", "hash160");
        }

Same methods

Address::Address ( NetworkParameters @params, string address ) : System
Address