weight method

int weight()

Get transaction weight

Implementation

int weight() {
  final int base = byteLength(false);
  final int total = byteLength(true);
  return base * 3 + total;
}