[TASK] consolidate transaction logic

Major refactor of the way transactions are submitted
Why are the flags negated?