Add transaction type

Targets #191
`getref()` takes cre of this.