Add transaction type

Targets #191
do a `getref()` here.