Add transaction version and type to RPC output

Can I switch `type` to `type_str` and `type_int` to `type`?