get_inputs_outputs now requires just one transaction
minor changes // refactor