src/primitives/address.js
function Address(options) {
  if (!(this instanceof Address))
    return new Address(options);

  this.hash = encoding.ZERO_HASH160;
  this.type = Address.types.PUBKEYHASH;
  this.version = -1;
  this.network = Network.primary;

  if (options)
    this.fromOptions(options);
}
function Address(options) {
  if (!(this instanceof Address))
    return new Address(options);

  this.hash = encoding.ZERO_HASH160;
  this.type = Address.types.PUBKEYHASH;
  this.version = -1;
  this.network = Network.primary;

  if (options)
    this.fromOptions(options);
}
function Address ( options ) { if ( ! ( this instanceof Address ) ) return new Address ( options ) ; this . hash = encoding . ZERO_HASH160 ; this . type = Address . types . PUBKEYHASH ; this . version = - 1 ; this . network = Network . primary ; if ( options ) this . fromOptions ( options ) ; }
Represents an address.
@alias module:primitives.Address
@constructor
@param {Object?} options
@property {Buffer} hash
@property {AddressPrefix} type
@property {Number} version
@property {Network} network
Represents an address .