code: function Details(txdb, wtx, block) {
    if (!(this instanceof Details))
      return new Details(txdb, wtx, block);
  
    this.wallet = txdb.wallet;
    this.network = this.wallet.network;
    this.wid = this.wallet.wid;
    this.id = this.wallet.id;
  
    this.chainHeight = txdb.walletdb.state.height;
  
    this.hash = wtx.hash;
    this.tx = wtx.tx;
    this.mtime = wtx.mtime;
    this.size = this.tx.getSize();
    this.vsize = this.tx.getVirtualSize();
  
    this.block = null;
    this.height = -1;
    this.time = 0;
  
    if (block) {
      this.block = block.hash;
      this.height = block.height;
      this.time = block.time;
    }
  
    this.inputs = [];
    this.outputs = [];
  
    this.init();
  }
docs: Transaction Details
  @alias module:wallet.Details
  @constructor
  @param {TXDB} txdb
  @param {TX} tx