Add transaction type

Targets #191
Just do a `getref()`