[TASK] consolidate transaction logic

Major refactor of the way transactions are submitted
I've made this comment before. There is only one `tes`, no need for a regular expression