Add transaction type

Targets #191
Reoerder these to match the order of the parameters.