Account for any size input in tx creation

addresses/fixes #1149