Convert CreateRawTransaction to higher-level types.

Closes #2.