code: function Coin(options) {
    if (!(this instanceof Coin))
      return new Coin(options);
  
    this.version = 1;
    this.height = -1;
    this.value = 0;
    this.script = new Script();
    this.coinbase = false;
    this.hash = encoding.NULL_HASH;
    this.index = 0;
  
    if (options)
      this.fromOptions(options);
  }
docs: Represents an unspent output.
  @alias module:primitives.Coin
  @constructor
  @extends Output
  @param {NakedCoin|Coin} options
  @property {Number} version - Transaction version.
  @property {Number} height - Transaction height (-1 if unconfirmed).
  @property {Amount} value - Output value in wmcoins.
  @property {Script} script - Output script.
  @property {Boolean} coinbase - Whether the containing
  transaction is a coinbase.
  @property {Hash} hash - Transaction hash.
  @property {Number} index - Output index.