code: function BalanceDetails(txdb, wid, id, account) {
    if (!(this instanceof BalanceDetails))
      return new BalanceDetails(wid, id, account);
  
    this.wid = wid;
    this.id = id;
    this.account = account;
    this.chainHeight = txdb.walletdb.state.height;
    this.total = 0;
    this.available = 0;
    this.pending = 0;
    this.immature = 0;
  }
docs: Balance Details
  @alias module:wallet.BalanceDetails
  @constructor
  @param {WalletID} wid
  @param {String} id
  @param {Number} account