helper: confirm transaction in a thread