Add transaction type

Targets #191
Because the other getters are not dangerous, because there are no setters. But for this one, there is an object which could be referenced from other things, too.