serializedSize property

int get serializedSize

Get serialized size in bytes

Implementation

int get serializedSize {
  int size = 4; // version
  size += VarInt.size(txIn.length); // input count
  for (final input in txIn) {
    size += input.serializedSize;
  }
  size += VarInt.size(txOut.length); // output count
  for (final output in txOut) {
    size += output.serializedSize;
  }
  size += 4; // lock time
  return size;
}