code: function TXDBState(wid, id) {
    this.wid = wid;
    this.id = id;
    this.tx = 0;
    this.coin = 0;
    this.unconfirmed = 0;
    this.confirmed = 0;
    this.committed = false;
  }
docs: Chain State
  @alias module:wallet.ChainState
  @constructor
  @param {WalletID} wid
  @param {String} id