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

  this.tx = new TX();
  this.mtime = util.now();
  this.height = -1;
  this.block = null;
  this.time = 0;
  this.index = -1;

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

  this.tx = new TX();
  this.mtime = util.now();
  this.height = -1;
  this.block = null;
  this.time = 0;
  this.index = -1;

  if (options)
    this.fromOptions(options);
}
function TXMeta ( options ) { if ( ! ( this instanceof TXMeta ) ) return new TXMeta ( options ) ; this . tx = new TX ( ) ; this . mtime = util . now ( ) ; this . height = - 1 ; this . block = null ; this . time = 0 ; this . index = - 1 ; if ( options ) this . fromOptions ( options ) ; }
An extended transaction object.
@alias module:primitives.TXMeta
@constructor
@param {Object} options
An extended transaction object .