getSize method

int getSize()

Calculates the tx size

Implementation

int getSize() {
  return toBytes(segwit: hasSegwit).length;
}