getByteCount method

int getByteCount ([bool addChangeOutput = true ])

Calculates byte count of this transaction. If addChangeOutput is true, it will arbitrarily add one output to indicate, that the developer plans to add change address later based on a result of this calculation

Throws ArgumentError if something goes wrong

Implementation

int getByteCount([bool addChangeOutput = true]) =>
  BitcoinCash.getByteCount(this._inputs.length, this._tx.outputs.length + (addChangeOutput ? 1 : 0));