totalSize

fun totalSize(tx: Transaction, protocolVersion: Long = PROTOCOL_VERSION): Int

Total size of the transaction with witness data, if any.