Refactor txtopairs into smaller functions

Also adds a test for one of the new functions
These Amounts can have their types inferred from just an integer constant.  No reason to type convert them from an int64.