helper functions for adding an input and output to a tx.
helper functions for adding an input and output to a tx.